It’s almost faster to create a BOSH release, iteratively deploy it and test it, then share a final documented release with the world than it is learn "what is BOSH again?" At Stark & Wayne we love BOSH, so here we go again to show how delicious this technology is for the development side. In just 17 minutes, I will start from scratch and create a clustered Redis deployment: one master and two slaves. I’ll also show how to "create a final release" that anyone else can then use.
This efficiency is thanks to two tools:
- bosh-lite – a local version of BOSH running under Vagrant
- bosh-gen – a CLI for generating new BOSH releases, and the packages and jobs within it.
Easy for any config management exploration
Even if you’re not looking to use BOSH for your production systems, the bosh-lite/bosh-gen combination is a great way to experiment with single node and clustered node versions of your systems or some new services you’ve discovered.
The video
Errata
The tutorial can be followed along with generous use of the pause button and some errata below.
The video does not show me modifying examples/bosh-lite-cluster.yml
file to add the properties.redis.master
property:
properties:
redis:
master: 10.244.0.6
As you develop your own releases you should update the generated examples files so that your README "just works" for other people.
Also, remember to create the S3 bucket for your project. If you ran bosh-gen new myproject
then you need to create an S3 bucket called myproject-boshrelease
.