albanpeignier / tryphon-puppet

Puppet configuration for Tryphon servers

This URL has Read+Write access

tryphon-puppet / script / puppetmasterd
100755 14 lines (9 sloc) 0.481 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
 
# create tmp if needed, other directories are created by puppetmasterd
[ -d tmp ] || mkdir tmp
 
# change working directories
OPTIONS="--logdir=$PWD/log --vardir=$PWD/tmp/lib --rundir=$PWD/tmp/run --ssldir=$PWD/tmp/ssl"
# use local files
OPTIONS="$OPTIONS --templatedir=$PWD/templates --manifestdir=$PWD/manifests --modulepath=$PWD/modules --confdir=$PWD/config"
 
OPTIONS="$OPTIONS --certname=puppet --logdest=console"
 
/usr/sbin/puppetmasterd --no-daemonize $OPTIONS $*