Creating a Deployment in VMware Aria Automation Assembler
You can use cloud templates (formerly blueprints) in VMware Aria Automation Assembler to define specifications for the machines or appliances that you want to provision. VMware Aria Automation Assembler stores cloud templates as code making it easier to manage and reuse. When you deploy a cloud template VMware Aria Automation workflows are run based on the configuration defined for resources in the cloud template.
To create a cloud template and deploy it, complete the following steps:
Log in to the VMware Aria Automation Cloud Services Console.
Launch the Assembler service.
The VMware Aria Automation Assembler is displayed.On the Design tab, in the left panel, click Cloud Templates.
To create a new template, from the NEW FROM drop-down list, choose Blank canvas and complete the following:
Name: Enter a name for the cloud template.
Project: Click the search field and select a project.
Every template must be associated with a project.Click CREATE to create the template.
The cloud template window opens.
Add resources to the deployment and connect them:
From the list of resources in the left panel, drag and drop the required resources on to the canvas. For example the Machine and Network resources.
Click the connection point on the network resource and drag it to connect it to the machine resource.
On the Code tab at the right-hand side, configure the IPAM properties for each resource. To edit:
Click a resource in the canvas to view its code in the Code tab editor.
Edit the Infoblox IPAM properties on the Code tab.
For the list of Infoblox properties that you can define and the combination of properties allowed for a deployment, see the Infoblox IPAM Properties.
For more information about property groups, see the Creating a Property Group section.
Sample code:formatVersion: 1 inputs: Allocate: type: object $ref: /ref/property-groups/<name of your property group> resources: Cloud_Network_1: type: Cloud.Network networkType: existing properties: constraints: - tag: infoblox Cloud_Machine_1: type: Cloud.Machine properties: NetworkProfileType: EXTERNAL name: ${input.Allocate.hostname} Infoblox.IPAM.createHostRecord: ${input.Allocate.createHostRecord} Infoblox.IPAM.createAddressRecord: ${input.Allocate.createAddressRecord} Infoblox.IPAM.createFixedAddress: ${input.Allocate.createFixedAddress} Infoblox.IPAM.createAddressAndPtrRecords: ${input.Allocate.createAddressAndPtrRecords} Infoblox.IPAM.restartIfNeeded: ${input.Allocate.restartIfNeeded} Infoblox.IPAM.createReservation: ${input.Allocate.createReservation} Infoblox.IPAM.Network0.Domain: ${input.Allocate.dnsSuffix} Infoblox.IPAM.Network0.enableDns: ${input.Allocate.enableDns} Infoblox.IPAM.Network0.enableDhcp: ${input.Allocate.enableDhcp} image: ubuntu flavor: small constraints: - tag: infoblox networks: - network: ${resource.Cloud_Network_1.id} assignment: static
Test the configuration defined on the Code tab before deploying the cloud template. To test, click TEST.
The extensibility actions InfobloxIPAM_AllocateIP and InfobloxIPAM_DeAllocateIP are run to allocate an IP address to, and then deallocate the IP address from the VM, respectively. The actions trigger the Allocate and Release workflows.
Test result with its status as Successful is displayed.
To deploy the template, click Deploy.
In the Deploy <template_name> dialog box, complete the following:
Note that the Deploy dialog box that displays may differ based on the configuration defined in the template code.Deployment Type: Ensure Create a new deployment is selected in the drop-down list.
Deployment Name: Enter a name for the deployment.
Cloud Template Version: Retain Current Draft.
Click NEXT.
Specify values for the input properties. For the list of supported properties, see Infoblox IPAM Properties.
Click DEPLOY.
The deployment runs the extensibility action InfobloxIPAM_AllocateIP, which triggers the Allocate workflow that allocates an IP address to the VM.
After allocating an IP address, the extensibility action InfobloxIPAM_Update is run. The action triggers the Update workflow that updates in NIOS the MAC addresses of the records associated with the VM.
Viewing the Progress of the Deployment
You can view the progress of a deployment, the actions and the workflows that are triggered by the deployment.
In VMware Aria Automation Assembler:
To view the progress of the deployment:
Navigate to the Resources tab -> Deployment tab of VMware Aria Automation.To view the actions that run:
In VMware Aria Automation Assembler, navigate to the Extensibility tab -> Activity -> Action Runs.
On the Action Runs page, select ALL RUNS from the drop-down list.
The list of actions that got triggered by a deployment are displayed.Click the name of an action to view its details.
In VMware Aria Automation Orchestrator, to view the status of the VMware Aria Automation workflow that gets triggered:
Log in to the VMware Aria Automation Orchestrator console.
Go to Dashboard -> Recent Workflow Runs.
The list of workflows that are run are displayed.Click the name of a workflow to view its details.
After a successful run, the status of the workflow displays as Completed.