Designing your first Cloud Assembly blueprint for vSphere
In my previous post I configured a vSphere Cloud Zone including Flavor- and Image Mappings, Storage- and Network Profiles. In this post I will walk you through how to design your first Cloud Assembly blueprint for vSphere using the Cloud Account, Cloud Zone and all other configurations you setup in the previous posts.
Create your first vSphere Blueprint
- In Cloud Assembly under the Blueprint tab click New.
- Enter a name for the blueprint and select your Project. Click Create.
- From the left menu drag a vSphere Machine and a vSphere Network component to the canvas. In the right pane of the blueprint screen, the YAML editor, infrastructure-as-code will automatically be generated for the selected components.
- Let’s modify the YAML code of the vSphere Machine.
- Remove the following lines:
- cpuCount: 1
- total MemoryMB: 1024
- Add a image value to the image property. For example, image: ‘centos’
- Add a flavor property with a value. For example, flavor: ‘small’
- Drag a connection from the vSphere Machine to the vSphere Network component. In the YAML code, a network dependency will automatically be created.
- Remove the following lines:
- Now, modify the vSphere network YAML code.
- Under the networks property, add a assignment property with the value static. (If you want your IP address to be assigned by DHCP, set the value to dynamic)
- Enter a name for the network.
- Add a Constraints property followed by a tag. Add the tag you used for the vSphere network which has an IP-range configured. For example, ‘ipam:true‘.
- In the blueprint screen, click Version.
- Enter a version number and optionally a Description and Change Log. Click Create.
- In the blueprint screen, click Deploy.
- Select Create a new deployment.
- Enter a Deployment Name.
- Select the Blueprint Version and click Deploy.
- In Cloud Assembly under the Deployments tab, you can see the progress of your deployment.
- When the deployment is successfull, the status of the deployed Resources are shown.
- Under Networks, you can check if the VM is given a Static IP address from the configured IP-range.
- And finally, login to vCenter to check if the VM is running.
In my next post I wil show you how to integrate your on-premises Puppet Enterprise environment with Cloud Assembly and use Puppet Roles for deploying software.
Other articles in the series Cloud Automation Services:
- So Cloud Automation Services are here, what’s next? How can I use it?
- Deploying a Data Collector for Cloud Assembly
- Setting up a vSphere Cloud Zone in Cloud Assembly
- Designing your first Cloud Assembly blueprint for vSphere
- Integrate Puppet with Cloud Assembly
- How to create a Cloud Agnostic service in Cloud Assembly
- Using input parameters to create dynamic blueprint requests in Cloud Automation Services
- Hello my name is VMware Cloud Assembly! by Erik Scholten
- Infoblox & vRealize Automation, vRA setup by Dimitri De Swart
- Setup provisioning of vCloud Air workloads by Erik Scholten
- How to run Containers as a Service – Part 2 by Dimitri De Swart
- Create a new database user using vRealize Automation XaaS by Erik Scholten