This repo contains scripts and terraform configurations to deploy a control plane, opsmanager and PKS to NSX-T. It assumes that NSX-T has been installed and configured with a T0 Router.
cat > .envrc <<EOF
export PEZ_PASSWORD=<password>
export PEZ_JUMPBOX=
export PIVNET_TOKEN=<pivnet_token>
export VSPHERE_PASSWORD=<password>
export VSPHERE_USER=administrator@vsphere.local
export OPSMAN_SSH_PASSWORD=<password>
export OPSMAN_USER=admin
export OPSMAN_PASSWORD=<password>
export OPSMAN_DECRYPTION_PASSPHRASE=<password>
export NSXT_USER=admin
export NSXT_PASSWORD=<password>
export ENVIRONMENT_NAME=sandbox
EOFRun the following source command to set the environment variables into your shell or install direnv to do this automatically.
source .envrc
- Run
./scripts/init.shto install required tools - Create a Resource pool in the
Clustercalledcontrol-plane - Create a
VM and TemplatefolderunderDatacentercalledcontrol-plane-vms - Update
./versions.ymlto use latest versions - Update
./control-plane/vars/$ENVIRONMENT_NAME/terraform.tfvars - run
./scripts/terraform-control-plane-apply.sh- this will create the infrastructure required in NSX-T for a control-plane, mainly the T1 router. - Update
opsman.ymlanddirector.ymlin the control-plane vars directory. - Run
./scripts/download-opsman.yml - Run
./scripts/deploy-opsman.yml - Verify that the opsmanager is online and accessible.
- Run
./scripts/download-control-plane.shto download releases control plane from pivnet - Finally run
./scripts/deploy-control-plane.shto deploy the control plane.