Skip to content

Instantly share code, notes, and snippets.

@michaellihs

michaellihs/bosh.md

Last active Apr 4, 2017
Embed
What would you like to do?
BOSH Cheat Sheet

BOSH Cheat Sheet

Debugging BOSH

  • bosh instances --ps see all processes / services on all VMs

  • curl https://BOSH_IP:25555/info -key certs/rootCA.key -cacert certs/rootCA.pem -cert certs/director.crt to check whether certificates work for a call to the BOSH director

Deployment Manifest

Basically we go with the Manifest v2 Schema for deployment manifests.

Sections

  • meta [optional] - provides a namespace for "global variables" that are later on pruned from the deployment manifest when building them with Spruce. E.g. passwords and instance specific settings are set in this namespace.

  • update [required] - control how BOSH updates instances during the deployment. See https://bosh.io/docs/manifest-v2.html#update

  • instance_groups [required] - specifies the mapping between release jobs and instance groups

Creating Passwords for BOSH Manifests

see https://github.com/mkuratczyk/prometheus-on-PCF#prepare-your-manifest-based-on-the-template-from-this-repo

ruby -e 'require "securerandom"; require "unix_crypt"; printf("%s\n", UnixCrypt::SHA512.build("c1oudc0w", SecureRandom.hex(8)))'

Further Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.