Bootstrap instance to use bosh-provisioner (https://github.com/cppforlife/bosh-provisioner).
{
"assets_dir": "/home/ubuntu/provisioner/assets",
"repos_dir": "/home/ubuntu/provisioner/repos",
"blobstore": {
"provider": "local",
"options": {
"blobstore_path": "/home/ubuntu/provisioner/blobstore"
}
},
"vm_provisioner": {
"full_stemcell_compatibility": false,
"agent_provisioner": {
"infrastructure": "warden",
"platform": "ubuntu",
"configuration": {
},
"mbus": "https://user:password@127.0.0.1:4321/agent"
}
},
"deployment_provisioner": {
}
}
sudo apt-get update
sudo apt-get install -y golang mercurial git
mkdir ~/go
cat > ~/.bashrc <<EOL
export GOPATH=\$HOME/go
export PATH=\$PATH:\$GOPATH/bin
EOL
source ~/.bashrc
go get github.com/cppforlife/bosh-provisioner/main
mv ~/go/bin/{main,bosh-provisioner}
mkdir provisioner
cd provisioner
cp -r ~/go/src/github.com/cppforlife/bosh-provisioner/assets/ ~/provisioner/
# git clone https://github.com/cloudfoundry/bosh.git assets
# cd assets
# git checkout $(git describe --abbrev=0 --tags --match="stable-*")
# write file to ~/provisioner/config.json
cd ~/provisioner
sudo /home/ubuntu/go/bin/bosh-provisioner -configPath=./config.json