Aug 07, 2015 Don't tell Geoff - customizing your BOSH VM's root user profile - part 2
Previously, the awesome Geoff Franks invented a way to customize the
root user's environment in any BOSH job https://blog.starkandwayne.com/2015/06/05/customizing-your-bosh-vms-root-environment/
I said, "let's do a
bash | curl installer" so its much easier to get the custom environment into a one-time VM for debugging.
Then MKB chimed in,
So, you've been warned. Because I did it anyway.
https://github.com/cloudfoundry-community/bosh-root-env is a starting point for a customizable
root bash environment.
To install by the critized
curl | bash method, first
bosh ssh into a VM, change to
root user and install:
sudo su - curl https://raw.githubusercontent.com/cloudfoundry-community/bosh-root-env/master/installer.sh | bash
root user and change back again:
exit sudo su -
root user now has all your favourite
.vimrc, aliases and more.
But don't tell Geoff I did this.