Multiple BOSHs and users on the same machine.

Sometimes you have multiple BOSHs and multiple users on the same jumpbox. This is a huge problem because you can only target one BOSH at a time. This makes me sad 🙁

We now have a great solution for this! Thank you to zimbatm we can install direnv. Follow instructions here

Now we can add context to folders where we store the manifest. Run the following command in the folder you want to connect to different BOSH.

cat >> .envrc <<<'export BOSH_CONFIG="${PWD}/.bosh_config"'

That’s it! Everytime you cd into that folder it will target into that BOSH. Of course you still still have issue if multiple people are trying to use same BOSH.

Spread the word

twitter icon facebook icon linkedin icon