This project contains Terraform scripts for deploying systems to VMware Cloud (VMC) on AWS.
Build the docker image from this directory with the following command:
$ docker build -t vmctf .The environment variables listed below are common to all of the Terraform scripts in this repository:
| Environment Variable | Description |
|---|---|
VSPHERE_SERVER |
The IP/FQDN of the vSphere server |
VSPHERE_USER |
A vSphere username used to create/destroy vSphere resources |
VSPHERE_PASSWORD |
The password for VSPHERE_USER |
New systems may be provisioned with the script run.sh:
usage: run.sh deploy|destroy SYSTEMSupported systems are:
openldap
The script looks for environment variables with the prefix VMCTF_(.*) and
writes them to a temporary file as $1 and TF_VAR_lcase($1). For example:
$ export VMCTF_NAME=hello
$ export VMCTF_FQDN=hello.comThe script will create a temporary file with the following contents:
NAME=hello
TF_VAR_name=hello
FQDN=hello
TF_VAR_fqdn=helloThe temporary file is used as the environment variable file when
launching a new container for the Docker image vmctf.