chriscowley / puppetmaster-bootstrap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

puppetmaster-bootstrap

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.

Prerequities

Currently tested on CentOS 6 only. I have every intention of adding CentOS 7 support and it may well work out-of-the-box.

Usage

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 happens
  • PMB_INSTALL_POSTRECEIVE : Install the post-receive git hook (default=1)

Contributing

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.

About

License:Apache License 2.0


Languages

Language:Shell 99.9%Language:Ruby 0.1%