Building an advanced lab using VMware vRealize Automation – Part 11: Configure endpoint & fabric/business groups

20150630 - vRAIn part 10 we configured the vRealize Automation default tenant for our lab. We decided against using multiple tenants as the lab is only hosting one organization, and business groups utilizing it will be defined using other means.

In this part, we configure the blueprints which will make up our service catalog.

Other posts in this series

  1. Intro
  2. Physical infrastructure – storage
  3. Physical infrastructure – networking
  4. Physical infrastructure – compute
  5. Authentication services
  6. Deploy and configure the vCenter Server Appliance
  7. Configure vCenter Server Appliance SSL certificates
  8. Deploy and configure the vRA Appliance
  9. Deploy and configure the IaaS platform
  10. Configure tenants
  11. Configure endpoint & fabric/business groups
  12. Configure blueprints (coming soon)
  13. Configure entitlements (coming soon)
  14. Configure policies (coming soon)
  15. Integration with vCloud Air (coming soon)
  16. Tidy up (coming soon)

Before we continue, let’s remind ourselves on the installation procedure and the order:

20150810 - 1

Before we can proceed, we must licence the vRA installation.

Using a web browser, navigate to the vRA configuration page at https://vra.lab.mdb-lab.com/shell-ui-app (substitute accordingly) and login using an account that belongs to the Infrastructure Administrators group you created in part 10:

20150810 - 2

Click on the Infrastructure tab, followed by Administration and then Licensing:

20150810 - 3

Click Add license:

20150810 - 4

Enter the licence key and then click OK.

Important – if you get a Page cannot be Found (404) error when trying to enter the licence key, then you need to re-register the endpoint.  Logon to the IaaS server and use:

cd "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe"
Vcac-Config.exe RegisterEndpoint --EndpointAddress https://iaas.lab.mdb-lab.com/vcac/ --Endpoint ui -v

This is due to a change VMware made starting from 6.1.x. More information can be found at http://kb.vmware.com/kb/2090236.

I have updated the relevant step in part 9 to reflect this.

Endpoints

In vRealize Automation, an endpoint is a target resource for our virtual machines. An example of this is a vCenter Server, vCloud Air or Amazon Web Services (AWS).

On the lab domain controller, create a service account:

dsadd user cn=sa_vra_endpoint,cn=users,dc=lab,dc=mdb-lab,dc=com -disabled no -pwd * -acctexpires never

Use the following PowerCLI code to grant the above user Admin privileges on the vCenter server:

# Variables

$vc = "vcsa.lab.mdb-lab.com"
$credential = Get-Credential
$acc = "LAB\sa_vra_endpoint"

Connect-VIServer $vc -credential $credential

New-VIPermission -Role Admin -Principal $acc -Entity Datacenters

Disconnect-VIServer $vc -confirm:$false

Click on the Infrastructure tab, followed by Endpoints and then Credentials:

20150810 - 5

Click on New Credentials and enter in the account we created above:

20150810 - 6

Click the green tick button to save the details.

Click Endpoints:

20150810 - 7

Click New Endpoint,  Virtual, vSphere (vCenter):

20150810 - 8

Enter in the details of the vCSA using the following format (substitute accordingly):

https://vcsa.lab.mdb-lab.com/sdk

Select the credentials entered in the previous step and click OK.

vCloud Air

If you have subscribed to VMware’s cloud solution, vCloud Air, then you can also specify that as a vRealize Automation endpoint.  The following is a list of steps for those who have access to the OnDemand Private Cloud.

Using your web browser, navigate to the vCloud Air site at http://vca.vmware.com:

20150810 - 10

Login using your credentials:

20150810 - 11

Click Virtual Private Cloud OnDemand.  When the portal loads, make a note of the URL:

20150810 - 12

You need the address plus /api/compute/.  In our case, as our vDC is based in Germany, the URL is:

https://de-germany-1-16.vchs.vmware.com/api/compute/

Right-click the vDC and click Manage Catalogs in vCloud Director:

20150810 - 13

Click Org Settings in the top right-hand corner:

20150810 - 14

Make a note of the Organization Name (I have blanked the last section of ours out).

Switch back to the vRA administration page.  Click Endpoints, then New Endpoint, Cloud, vApp (vCloud).  Complete the Name and Address fields, using the URL from above.

Click Credentials, followed by New Credentials in the top-right.  Enter in your vCloud Air credentials:

20150810 - 15

 

Click OK.  In the Organization field, enter in Organization Name you copied from before:

20150810 - 16

Click OK.

Using your mouse, hover over the vCloud Air endpoint and click Data Collection.

20150810 - 17

Click Start.  In a few minutes it will be complete.

Fabric Group

Fabric Groups control reservations on endpoints.  The provide resources to Business Groups.  One way to view this is:

20150810 - 19

On the domain controller in your production domain, create a group:

for %i in ("Fabric Admins - vCenter","Fabric Admins - vCloud Air") do dsadd group cn=%i,cn=users,dc=mdb-lab,dc=com -scope l

On the vRA appliance, click on the Infrastructure tab, then Groups, then finally Fabric Groups:

20150810 - 18

Click New Fabric Group.  Type a name for the group, and in the Fabric Administrators box type the name of the group previously created.  Click in the Compute Resources box, and then check the box that represents the vCenter cluster.   Finally click OK.

Machine Prefixes

Virtual machines provisioned by vRealize Automation can be prefixed to identify which business group they belong to.

Logon to the vRA appliance as a fabric administrator.  Click on the Infrastructure tab, then Blueprints, then finally Machine Prefixes.  Click New Machine Prefix:

20150810 - 20

Create three prefixes, each with three digits, with the next number being 1 for the following:

  • DV
  • OP
  • TS

This should produce:

20150810 - 21

Business Groups

Business Groups are logical groups which we can map to line of business functions, like Finance, Marketing, IT etc.  For our lab, we will create groups for the following functions that exist within the IT Department:

  • Development
  • Operations
  • Technical Specialists

Luckily these security groups already exist in our production domain.  However if they don’t, use the following to create them:

for %i in ("Development","Operations","Technical Specialists") do dsadd group cn=%i,cn=users,dc=mdb-lab,dc=com -secgrp yes

Create the following Organizational Units (substitute accordingly):

dsadd ou ou=Managed,dc=lab,dc=mdb-lab,dc=com
dsadd ou ou=Computers,ou=Managed,dc=lab,dc=mdb-lab,dc=com
for %i in ("Development","Operations","Technical Specialists") do dsadd ou ou=%i,ou=Computers,ou=Managed,dc=lab,dc=mdb-lab,dc=com

Create the following management users:

for %i in ("dv_mgr","op_mgr","ts_mgr") do dsadd user cn=%i,cn=users,dc=mdb-lab,dc=com -upn %i@mdb-lab.com

On the vRA appliance, click the Infrastructure tab, then Groups, then finally Business Groups:

20150810 - 22
Complete the dialog boxes for each group, then click OK.

20150810 - 23

Coming up

In this part we configured two endpoints for vRealize Automation that point to the local vCenter and to vCloud Air. We also created fabric groups, machine prefixes, and business groups aligned to our business functions.

In part 12 we configure blueprints which will make up our service catalog.

3 thoughts on “Building an advanced lab using VMware vRealize Automation – Part 11: Configure endpoint & fabric/business groups

  1. Is there a way to select Timezone while deploying the Virtual Machine for multiple sites through vRealize Automation?

    We are using 2 RHEL Blueprints for two sites, each specific to east and west. But we wanted to give a custom property which should select the Timezone while machine deployment request and customize accordingly during the provision.

    Please suggest the code in vRO workflow.

    Like

    • The only way I can think of is a drop-down at request time that sets a custom property. This is then picked up by the Event Broker, which post provisioning executes an in-guest script to change the timezone.

      Like

  2. Is there a way to select Timezone while deploying the Virtual Machine for multiple sites through vRealize Automation?

    We are using 2 RHEL Blueprints for two sites, each specific to east and west. But we wanted to give a custom property which should select the Timezone while machine deployment request and customize accordingly during the provision.

    Please suggest the code in vRO workflow.

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.