Install a Puppet master along with the utilities that I use (following the generally accepted best-practises) and sensible defaults.
- Puppetserver
- Dynamic environments
- R10k
- Git
- Hiera
Notice there is no PuppetDB. Puppet can install/configure PuppetDB itself, so I do not see a place for it in the bootstrap process.
Currently tested on CentOS 6 only. I have every intention of adding CentOS 7 support and it may well work out-of-the-box.
The simplest is to run:
curl https://raw.githubusercontent.com/chriscowley/puppetmaster-bootstrap/master/bootstrap.sh | sudo -E sh
You can also run sudo ./bootstrap.sh
.
This allows the use of a certain amount of configuration:
PMB_CONFIGURE_GIT
: Whether to install/configure Git (defaults=1)PMB_CONFIGURE_R10k
: Whether to install/configure R10k (defaults=1)PMB_TEST
: Only tell you what it would do, but nothing actually happensPMB_INSTALL_POSTRECEIVE
: Install the post-receive git hook (default=1)
Feel free to fork and send me a PR. Priority would be to add Debian/Ubuntu support if I do not get round to it first.