Added support for bootstrapping puppet server to empty host.

This commit is contained in:
Timo Mkinen 2010-10-21 21:59:44 +03:00
parent f0d1712c27
commit 49edab924a
3 changed files with 155 additions and 0 deletions

13
puppet/bootstrap-server.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
mkdir -p /etc/puppet/manifests
if [ ! -s /etc/puppet/manifests/site.pp ]; then
echo "" > /etc/puppet/manifests/site.pp
fi
ssldir=`echo "require 'puppet'; Puppet.parse_config; print Puppet.settings.value('ssldir')" | ruby`
(
echo "\$puppet_ssldir = '${ssldir}'"
echo "include puppet::server"
) | puppet --no-report