Added support for bootstrapping puppet server to empty host.
This commit is contained in:
parent
f0d1712c27
commit
49edab924a
3 changed files with 155 additions and 0 deletions
13
puppet/bootstrap-server.sh
Executable file
13
puppet/bootstrap-server.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue