Prerequisite: Install terraform >= 0.8.7
- Clone
git clone https://github.com/cloudfoundry-incubator/bosh-openstack-environment-templates.git - Create a working directory
- Copy
bosh-init-tf/terraform.tfvars.templateto<working-directory>/terraform.tfvars - Execute
bosh-init-tf/generate_ssh_keypair.shto generate a key pair. - Move the generated key pairs to
<working-directory> - Navigate to
<working-directory>- Configure
terraform.tfvars - Execute
terraform init <cloned-repo-path>/bosh-init-tf - Execute
terraform apply <cloned-repo-path>/bosh-init-tf
- Configure
The terraform scripts will output the OpenStack resource information required for the BOSH manifest.
Make sure to treat the created terraform.tfstate files with care.
If you have the terraform.tfstate file available destroy_openstack_env.sh will
destroy the created resources.
NOTE: The template uses Keystone V3