Name: terraforming-vsphere
Owner: Pivotal Cloud Foundry
Description: use terraform, deploy yourself a pcf
Created: 2017-11-10 00:56:01.0
Updated: 2018-05-03 15:54:35.0
Pushed: 2018-05-03 15:54:34.0
Size: 31
Language: HCL
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Please note that the master branch is generally unstable. If you are looking for something “tested”, please consume one of our releases.
You will get a booted ops-manager VM plus some networking.
Your system needs terraform
:
update
install terraform
The vCenter Role must have the following privileges:
Refer to vSphere Terraform Provider documentation.
Copy the stub content below into a file called terraform.tfvars
and put it in the root of this project.
These vars will be used when you run terraform apply
.
You should fill in the stub values with the correct content.
name = "some-env"
ter_user = "some-user"
ter_password = "some-password"
ter_server = "some-server"
ter_dc = "some-datacenter"
ter_cluster = "some-cluster"
ter_rp = "some-cluster/some-resource-pool"
ter_ds = "some-datastore"
pv4_address = "x.x.x.x"
etmask0 = "255.x.x.x"
ateway = "x.x.x.x"
NS = "x.x.x.x"
tp_servers = "x.x.x.x"
dmin_password = "some-password"
ustom_hostname = "some-hostname"
ter_network = "some-network"
ter_vms = "some-parent-folder/some-vms-folder"
emplate = "some-templates-folder"
env_name: (required) Environment name.
vsphere_user: (required) Username for vSphere API operations.
vsphere_password: (required) Password for vSphere API operations.
vsphere_server: (required) vCenter server name for vSphere API operations.
vcenter_dc: (required) Datacenter for launching vms.
vcenter_cluster: (required) Cluster for launching vms.
vcenter_ds: (required) Datastore for the virtual disks.
om_ipv4_address: (optional) OpsMgr static IPv4 address. Leave unset if DHCP is desired.
om_netmask0: (optional) OpsMgr netmask. Leave unset if DHCP is desired.
om_gateway: (optional) OpsMgr gateway. Leave unset if DHCP is desired.
om_DNS: (optional) OpsMgr DNS Servers, comma separated. Leave unset if DHCP is desired.
om_ntp_servers: (required) OpsMgr NTP Servers, comma separated.
om_admin_password: (required) OpsMgr VM password. The username is 'ubuntu'.
om_custom_hostname: (optional) OpsMgr Hostname. Default is 'pivotal-ops-manager'.
vcenter_network: (required) Label for the network interface.
vcenter_vms: (required) Folder for launching vms.
vcenter_rp: (optional) Resource Pool for launching vms.
om_template: (optional) Ops Manager vm template.
om_vmdk: (optional) If not specifying vcenter_template
, specify path to a vmdk in the vcenter_ds
.
allow_unverified_ssl: (optional) Defaults to false. Set to true if your vcenter uses self-signed certs.
Note: please make sure you have created the terraform.tfvars
file above as mentioned.
aform init
aform plan -out=plan
aform apply
aform destroy