Create the on-boarding process

When a new customer is on-boarded in vCloud Director, there are a lot of different things to create (Org, vDC, Networks, ...). vRealize Orchestrator helps you to easily automate the process to avoid errors and on-board the customer faster.

Create a new workflow

  1. Select the Workshop folder
  2. Click on the Workflow button
  3. Enter the name of the workflow: On-Board customer
  4. Click Ok

Add the workflow element "Add an organization"

  1. Select Schema tab
  2. Navigate to the workflow Library > vCloud Director > Admin > Organization > Add an organization
  3. Drag and Drop the workflow to the canvas on the blue arrow

Skip all bindings

For this workflow a lot of inputs won't be bound to any other variable, so they are all assigned to NULL first and some of them will be re-assigned later in the manual.

  1. Make sure the workflow element is selected and click the Setup... button
  2. Select Skip for all inputs parameters
  3. Select Skip for all outputs parameters
  4. Click the Promote button

 

Add the workflow element "Add a vDC"

  1. Navigate to the workflow Library > vCloud Director > Admin > vDC > Add a vDC
  2. Drag and Drop the workflow just before the end element

Skip all bindings

For this workflow a lot of inputs won't be bound to any other variable, so they are all assigned to NULL first and some of them will be re-assigned later in the manual.

  1. Make sure the workflow element is selected and click the Setup... button
  2. Select Skip for all inputs parameters
  3. Select Skip for all outputs parameters
  4. Click the Promote button

 

Add the workflow element "Add a gateway"

  1. Navigate to the workflow Library > vCloud Director > Admin > vDC > Gateway > Add a gateway
  2. Drag and Drop the workflow just before the end element

Skip all bindings

For this workflow a lot of inputs won't be bound to any other variable, so they are all assigned to NULL first and some of them will be re-assigned later in the manual.

  1. Make sure the workflow element is selected and click the Setup... button
  2. Select Skip for all inputs parameters
  3. Select Skip for all outputs parameters
  4. Click the Promote button

 

Add the workflow element "Add an organization vDC network"

  1. Navigate to the workflow Library > vCloud Director > Admin > vDC > Network > Add an organization vDC network
  2. Drag and Drop the workflow just before the end element

Skip all bindings

For this workflow a lot of inputs won't be bound to any other variable, so they are all assigned to NULL first and some of them will be re-assigned later in the manual.

  1. Make sure the workflow element is selected and click the Setup... button
  2. Select Skip for all inputs parameters
  3. Select Skip for all outputs parameters
  4. Click the Promote button

 

Bind variables for wf "Add an organization"

  1. Select "Add an organization" workflow element
  2. If necessary, expand the lower panel
  3. Select the IN tab

Create "host" attribute

  1. On the host line, Click the NULL link
  2. Click the link Create parameter/attribute in workflow

Leave everything by default

  1. Click the Not set link
  1. Select the vCloud Director host previously created
  2. Click the Select button
  1. Verify the vCloud Director host is selected
  2. Click the Ok button

Create "name" input

Repeat the same process for name variable by changing the value highlighted in the screenshot

Bind "fullName" local parameter

In order to simplify the organization deployment, the name of the organization and the fullName will be the same. For this reason the already existing name input parameter will be bound to the fullName parameter.

  1. Drag and drop name from In Parameters to fullName in IN

Create "ldapMode" input

Repeat the same process for ldapMode variable by changing the value highlighted in the screenshot

Create "invalidLoginsBeforeLockout" input

Repeat the same process for invalidLoginsBeforeLockout variable by changing the value highlighted in the screenshot

Create "EnabledOrg" attribute

Repeat the same process for EnabledOrg variable by changing the value highlighted in the screenshot.
It might be needed to scroll down to the bottom of the list to find this variable.

Bind the output variable org

  1. Drag and drop org variable from OUT to the blank in Out Attributes
  2. Click Ok in the popup (not shown)

This variable is bound as an attribute because it will be re-used by the subsequent workflow elements.

Bind inputs for wf "Add a vDC"

  1. Select "Add a vDC" workflow element
  2. If necessary, expand the lower panel
  3. Select the IN tab

Bind "org" local parameter

  1. On the org line, Click the NULL link
  2. Select the already existing org attribute
  3. Click the Select button

Create "vdcName" attribute

Create a new attribute by following the values highlighted in the screenshot.

Bind "enabled" local parameter

  1. On the enabled line, Click the NULL link
  2. Select the already existing enabled attribute
  3. Click the Select button

Create "allocationMode" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "providerVdc" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "providerVdcStorageProfile" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "networkQuota" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "networkPool" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "vCPUSpeed" attribute

Create a new attribute by following the values highlighted in the screenshot.

Bind the output variable org

  1. Drag and drop org variable from OUT to the blank in Out Attributes
  2. Click Ok in the popup (not shown)

This variable is bound as an attribute because it will be re-used by the subsequent workflow elements.

Bind inputs for wf "Add a gateway"

  1. Select "Add a gateway" workflow element
  2. If necessary, expand the lower panel
  3. Select the IN tab

Bind "vdc" local parameter

  1. On the vdc line, Click the NULL link
  2. Select the already existing vdcOut attribute
  3. Click the Select button

Create "gwName" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "backingConfig" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "externalNetwork" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "subnet1Netmask" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "subnet1Gateway" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "subnet1IpAddress" attribute

Create a new attribute by following the values highlighted in the screenshot.

Bind the output variable gatewayOut

  1. Drag and drop org variable from OUT to the blank in Out Attributes
  2. Click Ok in the popup (not shown)

This variable is bound as an attribute because it will be re-used by the subsequent workflow elements.

Bind inputs for wf "Add an organization vDC network"

  1. Select "Add an organization vDC Network" workflow element
  2. If necessary, expand the lower panel
  3. Select the IN tab

Bind "vdc" local parameter

  1. On the vdc line, Click the NULL link
  2. Select the already existing vdcOut attribubte
  3. Click the Select button

Create "vdcNetName" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "fenceMode" attribute

Create a new attribute by following the values highlighted in the screenshot.

Bind "routedEdgeGateway" local parameter

  1. On the routedEdgeGateway line, Click the NULL link
  2. Select the already existing gatewayOut attribubte
  3. Click the Select button

Create "routedNetmask" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "routedGateway" attribute

Create a new attribute by following the values highlighted in the screenshot.

Create "routedIpAddressRange" attribute

Create a new attribute by following the values highlighted in the screenshot.

Manage naming

Naming of vDC, Gateway, and Organization vDC network needs to be named appropriately. A little piece of code will be there to manage it.

Add a scriptable task

  1. Select Generic tab
  2. Drag and Drop Scriptable task to the blue arrow between the beginning of the workflow and Add an Organization

Bind IN and OUT

  1. Make sure the scriptable is selected
  2. Select Visual Binding
  3. Bind the following local parameters by drag and dropping the right parameter or attribute.

IN:
- name from In Parameters

OUT:
- vdcName from Out Attributes
- gwName from Out Attributes
- vdcNetName from Out Attributes

Add Scripting

  1. Select Scripting tab
  2. Add the following code
vdcName = name + "-vdc";
vdcNetName = name + "-net";
gwName = name + "-gw";

Script variable names might need to be changed based on the input name you chose in previous steps.

Save and close the workflow

  1. Click the Save and close button

Start the workflow

  1. Enter the customer name (without any spaces or special characters)
  2. Click the Submit button

Observe the creation in vCloud Director

While the workflow is running, it is possible to look at vCloud Director to see all the objects being created.