pivotal-cf/terraforming-vsphere

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

Homepage:

Size: 31

Language: HCL

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Terraforming vSphere

Please note that the master branch is generally unstable. If you are looking for something “tested”, please consume one of our releases.

What Does This Do?

You will get a booted ops-manager VM plus some networking.

Looking to setup a different IAAS?
Prerequisites

Your system needs terraform:

 update
 install terraform

The vCenter Role must have the following privileges:

  1. Datastore
  2. Folder (all)
  3. Network
  4. Resource
  5. Virtual Machine
  6. vCenter Inventory Service
  7. License

Refer to vSphere Terraform Provider documentation.

Var File

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"
Var Details
Running

Note: please make sure you have created the terraform.tfvars file above as mentioned.

Standing up environment
aform init
aform plan -out=plan
aform apply
Tearing down environment
aform destroy

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.