This repository provides infrastructure-as-code examples to automate the creation of resources on VMware products / solutions.
Examples are provided for the following:
VMware Cloud Services
- Cloud Proxy for Skyline
- Cloud Proxy for vRealize Operations Cloud
- Cloud Proxy for vRealize Log Insight Cloud
- Cloud Proxy for vRealize Network Insight Cloud
- Cloud Proxy for vRealize Automation Cloud
- Cloud Extensibility Proxy for vRealize Automation Cloud
- Activate Tanzu services on VMware Cloud on AWS
VMware vSphere
- vSphere Content Library
- Publisher
- Subscriber
- Subscriber for Tanzu
- Items
- vSphere DRS Anti-Affinty Rules
- vSphere DRS VM-VM Rules
- vSphere Folders
- vSphere Folders and Resource Pools
- vSphere HA VM-Host Groups
- vSphere HA VM Overrides
- vSphere Custom Roles for vRealize Suite
- vSphere Custom Role for Packer
- vSphere dvPortGroup for NFS Storage
- vSphere NFS Datastore
- vSphere Storage Policy for Tanzu
- vSphere Virtual Machine (Various Examples)
VMware NSX-T Data Center
- NSX Segments for Existing Networks in vRealize Automation
- NSX Segments for On-Demand Networks in vRealize Automation
VMware vRealize Automation
- Cloud Accounts
- vCenter Server
- NSX-T Data Center
- Image Mappings
- Flavor Mappings
- Storage Profiles
- Network Profiles
- Existing Networks
- On-Demand Networks
- Fabric Networks
- Existing Networks
- On-Demand Networks
- Cloud Template
- Projects
- Content Source
- Content Item
VMware Cloud Director
- VCD Virtual Machine
If you'd like to automate the creation of the custom vSphere role, a Terraform example is included in the project.
- Clone the repository.
git clone https://github.com/tenthirtyam/terraform-examples-vmware.git
- Navigate to the directory for the example.
cd terraform-examples-vmware/vsphere/vsphere-roles-vrealize
- Duplicate the
terraform.tfvars.example
file toterraform.tfvars
in the directory.
cp terraform.tfvars.example terraform.tfvars
-
Open the
terraform.tfvars
file and update the variables according to your environment. -
Initialize the current directory and the required Terraform provider for VMware vSphere.
terraform init
- Create a Terraform plan and save the output to a file.
terraform plan -out=tfplan
- Apply the Terraform plan.
terraform apply tfplan
The following are active maintainers of this repository.
- Ryan Johnson, Staff Solutions Architect, VMware, Inc.