vcsa-deploy
kalenarndt/vcsa-deploy/vsphere
Module to deploy a vCenter Server Appliance with Terraform
Install
README
Terraform vSphere VCSA Deploy This Terraform module creates and deploys a vCenter Server Appliance on an ESXi host or in a vCenter environment. Acknowledgements - Based on a module by Riverpoint Technology ## Usage/Examples ``hcl locals { # Deployment Details infra_deploy = yamldecode(file("${path.module}/deploy_vcenter_on_vcenter.yaml")) deploy_vcenter = local.infra_deploy.deploy_vcenter } module "deploy_vcenter" { source = "kalenarndt/vcsa-deploy/vsphere" for_each = local.deploy_vcenter deploy_type = each.value.deploy_type vc_datacenter = each.value.vc_datacenter vc_username = each.value.vc_username vc_hostname = each.value.vc_hostname vc_password = each.value.vc_password vc_cluster = each.value.vc_cluster vcsa_network = each.value.vcsa_network vcsa_datastore = each.value.vcsa_datastore
Inputs (29)
| Name | Type | Description | Default |
|---|---|---|---|
| vcenter_hostname | string | Hostname for the vCenter Server Applaince | required |
| vcenter_dns | string | vCenter server upstream DNS servers | required |
| vcenter_fqdn | string | vCenter server FQDN | required |
| binaries_path | string | Path for the vCenter server deployment binaries | required |
| vcsa_datastore | string | Target datastore for the vCenter appliance | required |
| vcenter_gateway | string | Default gateway for vCenter server | required |
| vcenter_root_password | string | vCenter server root password | required |
| vcenter_ip | string | vCenter server IP Address | required |
| vcsa_network | string | Target vCenter appliance network | required |
| vcenter_prefix | string | vCenter server subnet prefix | "24" |
| vcenter_ntp_server | string | vCenter server NTP server | "pool.ntp.org" |
| esxi_hostname | string | ESXi hostname of the target host | "" |
| vc_username | string | Username for the account on the target vCenter that will be used to deploy the a | "" |
| vcenter_sso_domain | string | vCenter server SSO domain | "vsphere.local" |
| windows | bool | Toggle for executing the windows binary for deploying the vcsa | false |
| esxi_username | string | Username for the account on the target ESXi host | "" |
| ip_family | string | Setting for ipv4 or ipv6 | "ipv4" |
| vcenter_ceip_status | bool | vCenter server CEIP status | false |
| vc_hostname | string | vCenter hostname of the target vCenter where the appliance will be deployed in | "" |
| vc_password | string | Password for the account on the target vCenter that will be used to deploy the a | "" |
| network_mode | string | Static or DHCP configuration for the network mode | "static" |
| vcenter_ssh_enabled | bool | vCenter SSH setting | true |
| vcenter_sso_password | string | vCenter server SSO password | "VMware123!" |
| vc_cluster | string | Cluster where the appliance will be deployed | "" |
| disk_mode | bool | Thin provisioned disk mode | true |
| deployment_size | string | vCenter server deployment size | "tiny" |
| vc_datacenter | string | Datacenter where the appliance will be deployed | "" |
| deploy_type | string | Type of deployment that will be performed - esxi or vc | "esxi" |
| esxi_password | string | Password for the account on the target host | "" |
Outputs (6)
vcenter_root_password — Password for the local root uservcenter_ip — vCenter IP addressvcenter_fqdn — vCenter FQDNvcenter_user — SSO user that was created during the vCenter provisioningvcenter_password — SSO user password that was set during the vCenter provisioningvcenter_root_user — Username for the local root user