Skip to content

Instantly share code, notes, and snippets.

@ships
Created August 2, 2017 22:26
Show Gist options
  • Save ships/8c5e9919fd12b55b7052f98971de3b4c to your computer and use it in GitHub Desktop.
Save ships/8c5e9919fd12b55b7052f98971de3b4c to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eux
$GOBOSH create-env ~/workspace/bosh-deployment/bosh.yml \
--state ./state.json \
-o ~/workspace/bosh-deployment/virtualbox/cpi.yml \
-o ~/workspace/bosh-deployment/virtualbox/outbound-network.yml \
-o ~/workspace/bosh-deployment/bosh-lite.yml \
-o ~/workspace/bosh-deployment/bosh-lite-runc.yml \
-o ~/workspace/bosh-deployment/jumpbox-user.yml \
--vars-store ./creds.yml \
-v director_name="Bosh Lite Director" \
-v internal_ip=192.168.50.6 \
-v internal_gw=192.168.50.1 \
-v internal_cidr=192.168.50.0/24 \
-v outbound_network_name=NatNetwork
$GOBOSH alias-env vbox -e 192.168.50.6 --ca-cert <($GOBOSH int ./creds.yml --path /director_ssl/ca)
export BOSH_CLIENT=admin
export BOSH_CLIENT_SECRET=`$GOBOSH int ./creds.yml --path /admin_password`
$GOBOSH -e vbox env
$GOBOSH -e vbox update-cloud-config ~/workspace/bosh-deployment/warden/cloud-config.yml
$GOBOSH -e vbox upload-stemcell https://bosh.io/d/stemcells/bosh-warden-boshlite-ubuntu-trusty-go_agent?v=3421.9 \
--sha1 1396d7877204e630b9e77ae680f492d26607461d
$GOBOSH -e vbox -d zookeeper deploy <(wget -O- https://raw.githubusercontent.com/cppforlife/zookeeper-release/master/manifests/zookeeper.yml)
$GOBOSH -e vbox -d zookeeper run-errand smoke-tests
route add -net 10.244.0.0/16 192.168.50.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment