Sha256: a9c9feeef741458cb11d659ee4e6cb81ddc8d797946942fcf130c899ade3cadd
Contents?: true
Size: 897 Bytes
Versions: 12
Compression:
Stored size: 897 Bytes
Contents
#!/usr/bin/env bash # Deploys a micro BOSH using "bosh micro deploy" # # Required: # * $BOSH_NAME - name of bosh deployment # (thus /var/vcap/store/microboshes/deployments/$BOSH_NAME/micro_bosh.yml exists) # * $BOSH_HOST - public IP of the deployed BOSH # * $BOSH_USERNAME - user login to be created # * $BOSH_PASSWORD - password for user login set -e # exit immediately if a simple command exits with a non-zero status set -u # report the usage of uninitialized variables cd /var/vcap/store/microboshes/deployments/ if [[ -f $BOSH_NAME/new_bosh_deployed ]]; then echo "Initially targeting micro-bosh..." bosh -u admin -p admin target $BOSH_HOST echo "Creating initial user $BOSH_USERNAME..." bosh login admin admin bosh create user $BOSH_USERNAME $BOSH_PASSWORD rm -f $BOSH_NAME/new_bosh_deployed fi echo "Login as $BOSH_USERNAME..." bosh login $BOSH_USERNAME $BOSH_PASSWORD
Version data entries
12 entries across 12 versions & 1 rubygems