Automating vCAC Tenant Creation with vCO: Part 5 Creating an Identity Store

In this series we will see how to automate the creation of a tenant in vCAC using vCO. There are multiple tasks to provision a tenant in vCAC, so even though it is an automation product itself, there’s no reason why you shouldn’t look at automating parts of it too.

In part 5 we look at adding an Identity Store to a Tenant in vCAC.

1) Generate the variables for adding an Identity Store

Add a scriptable task so we can generate the parameters we need for an Identity Store

Add the AD domain as an Attribute of the workflow

Add an additional property to that Configuration Element for the netbiosDomain

and add it as an attribute of the workflow

Create a new Configuration Element for the Identity Store and add Type and URL properties.

 

Then add them as workflow attributes:

Add inputs

Add outputs

And the following scripting

[code language=“javascript”]

identityStoreName = tenantName + “-AD”; identityStoreUserDN = vcoServiceUser.distinguishedName; identityStoreGroupsSearchDN = tenantGroupsOU.distinguishedName; identityStoreUsersSearchDN = tenantUsersOU.distinguishedName;

tenantAdministratorsName = tenantAdminsGroup.getAttribute(‘Name’); infrastructureAdministratorsName = infrastructureAdminsGroup.getAttribute(‘Name’);

tenantAdministratorsUpnName = tenantAdministratorsName + “@” + identityStoreDomain; infrastructureAdministratorsUpnName = infrastructureAdministratorsName + “@” + identityStoreDomain;

tenantAdministrators = [tenantAdministratorsUpnName]; infrastructureAdministrators = [infrastructureAdministratorsUpnName];

[/code]

 

 

2) Add the ‘Add an identity store to a tenant’ workflow

Drag the Add an identity store to a tenant’ workflow from the vCloud Automation Center section of the workflow library

Add the In parameters

  1. Now run the workflow to test it works

 

In part 6 we will complete the  Administrators configuration

 

Automating vCAC Tenant Creation with vCO: Part 1 AD SSL Automating vCAC Tenant Creation with vCO: Part 2 AD Users, Groups and OUs Automating vCAC Tenant Creation with vCO: Part 3 Install the vCAC plugin for vCO Automating vCAC Tenant Creation with vCO: Part 4 Creating a Tenant Automating vCAC Tenant Creation with vCO: Part 5 Creating an Identity Store Automating vCAC Tenant Creation with vCO: Part 6 Adding Administrators Automating vCAC Tenant Creation with vCO: Part 7 Creating a vCAC Catalog Item