Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Latest commit

 

History

History

bosh-init-tf

Prepare an OpenStack environment

Prerequisite: Install terraform >= 0.8.7

  1. Clone git clone https://github.com/cloudfoundry-incubator/bosh-openstack-environment-templates.git
  2. Create a working directory
  3. Copy bosh-init-tf/terraform.tfvars.template to <working-directory>/terraform.tfvars
  4. Execute bosh-init-tf/generate_ssh_keypair.sh to generate a key pair.
  5. Move the generated key pairs to <working-directory>
  6. Navigate to <working-directory>
    1. Configure terraform.tfvars
    2. Execute terraform init <cloned-repo-path>/bosh-init-tf
    3. Execute terraform apply <cloned-repo-path>/bosh-init-tf

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.

Delete the OpenStack environment

If you have the terraform.tfstate file available destroy_openstack_env.sh will destroy the created resources.

NOTE: The template uses Keystone V3