#!/usr/bin/env bash set -xe # Create a new BOSH environment with Director bosh create-env deployments/bosh/bosh.yml \ --state=config/state.json \ --vars-store=config/creds.yml \ --vars-file=config/bosh-vars.yml \ --var-file private_key=<%= @values['kite']['private_key_path'] %> \ -o deployments/bosh/cpi.yml \ -o deployments/bosh/jumpbox-user.yml # Configure alias for the new environment bosh alias-env <%= @values['bosh']['name'] %> \ -e <%= @values['bosh']['static_ip'] %> \ --ca-cert <(bosh int ./config/creds.yml --path /director_ssl/ca) bosh -e <%= @values['bosh']['name'] %> ucc deployments/bosh/cloud-config.yml # Get jumpbox user key bosh int config/creds.yml --path /jumpbox_ssh/private_key > config/jumpbox.key chmod 600 config/jumpbox.key