Last active
August 29, 2015 14:18
-
-
Save ajroetker/64d79b6a8e6f30eb3ecc to your computer and use it in GitHub Desktop.
PuppetDB smoke-testing bootstraping script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
cat <<PUPPETDBCONF > /etc/puppet/puppetdb.conf | |
[main] | |
server=$(facter fqdn) | |
port=8081 | |
PUPPETDBCONF | |
cat <<ROUTESYAML > /etc/puppet/routes.yaml | |
--- | |
master: | |
facts: | |
terminus: puppetdb | |
cache: yaml | |
ROUTESYAML | |
puppet config set storeconfigs true --section master | |
puppet config set storeconfigs_backend puppetdb --section master | |
puppet config set reports puppetdb --section master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Puppet 4+ you'll need to change
/etc/puppet
to/etc/puppetlabs/puppet
for AIO.