Sha256: a5739611aef92d9963912ebaa6e9a009858f71007132e0d3d7469880e2d94723

Contents?: true

Size: 792 Bytes

Versions: 1

Compression:

Stored size: 792 Bytes

Contents

#!/usr/bin/env bash

set -xe

# Create a new BOSH environment with Director
bosh create-env deployments/bosh/bosh_director.yml \
  --state=state.json \
  --vars-store=creds.yml \
  --vars-file=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 ./creds.yml --path /director_ssl/ca)

# Get jumpbox user key
bosh int creds.yml --path /jumpbox_ssh/private_key > jumpbox.key
chmod 600 jumpbox.key

# Log into the newly created Director
export BOSH_CLIENT=admin
export BOSH_CLIENT_SECRET=`bosh int ./creds.yml --path /admin_password`

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kite-0.0.6 tpl/aws/bosh-install.sh.erb