Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@michaellihs
Last active April 4, 2017 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellihs/afdcfbe0b5f46c6bfacacd0ec1322ba0 to your computer and use it in GitHub Desktop.
Save michaellihs/afdcfbe0b5f46c6bfacacd0ec1322ba0 to your computer and use it in GitHub Desktop.
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