Last active
December 27, 2017 23:17
-
-
Save DennisDenuto/5d8d5c47c5c4199101bcdcf21f17f477 to your computer and use it in GitHub Desktop.
setup bosh-lite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/workspace/vbox | |
git clone https://github.com/cloudfoundry/bosh-deployment ~/workspace/bosh-deployment | |
git clone https://github.com/mariash/learn-bosh-release ~/workspace/learn-bosh-release | |
git clone https://github.com/cloudfoundry/cf-deployment ~/workspace/cf-deployment | |
# download and install bosh cli | |
https://bosh.io/docs/cli-v2.html | |
# download and install virtualbox | |
https://www.virtualbox.org/wiki/Downloads | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
# bootstrap bosh | |
cd ~/workspace/vbox | |
bosh 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 | |
# Alias and log into the Director | |
bosh alias-env vbox -e 192.168.50.6 --ca-cert <(bosh int ./creds.yml --path /director_ssl/ca) | |
export BOSH_CLIENT=admin | |
export BOSH_CLIENT_SECRET=`bosh int ./creds.yml --path /admin_password` | |
#confirm it works: | |
bosh -e vbox env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment