This repo contains a module for configuring a VMware VCSA vCenter with Nested VMware hypervisor using Terraform.
The vCenter Server Appliance is a preconfigured Linux virtual machine, which is optimized for running VMware vCenter Server® and the associated services on Linux.
This Module leverages the outputs from the VCSA Build Module and the Nested ESXi Module to configure the new VCSA and add the hosts to the cluster.
This repo has the following structure:
- root folder: The root folder contains all of the Terraform code necessary to configure standard vSphere components (Datacenter, Compute Cluster, Folders, Distributed Virtual Switch, Resource Pools, etc), and the code to join the Nested ESXi VMs to the Compute Cluster.
Prerequisites/Notes:
- Both modules (VCSA Build and Nested ESXi) must be run first: This module uses the outputs from each of the aforementioned modules as inputs to configure VCSA. If those outputs are not available, this module will fail to run.
- Add/remove hosts and Cluster destruction: If you adjust the host count in the Nested ESXi module, you will need to run/trigger this module again to adjust the VCSA configuration appropriately. If the environment needs to be destroyed completely, please first disconnect and remove hosts from the Cluster, and destroy in reverse order (VCSA Config, VCSA Build, and Nested ESXi). The VCSA will need to be manually deleted from your primary cluster as it does not live in .tfstate.
This code is released under the MIT License. Please see LICENSE for more details.
Copyright © 2020 River Point Technology