This is an example on how to setup a cloud account for vSphere along with zones and a project.
There are variables which need to be added to terraform.tfvars. The first are for connecting to the vRealize Automation (vRA) endpoint, there are credentials for connecting to the vCenter instance, and the name of the data collector already setup in vRA.
url
- The URL for the vRealize Automation (vRA) endpointrefresh_token
- The refresh token for the vRA accountusername
- username for vCenter serverpassword
- password for vCenter serverhostname
- hostname for vCenter servernsxt_username
- username for NSX-Tnsxt_password
- password for NSX-Tnsxt_hostname
- hostname for NSX-Tdatacollector
- the name for the data collector already setup for the vCenter account
To facilitate adding these variables, a sample tfvars file can be copied first:
cp terraform.tfvars.sample terraform.tfvars
Once the information is added to terraform.tfvars
, the cloud account can be brought up via:
terraform init
terraform apply