Last active
December 30, 2015 19:49
-
-
Save shadowbq/7876984 to your computer and use it in GitHub Desktop.
FreeBSD ruby19 rc.d/puppetm puppet master init script
This file contains hidden or 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
#!/bin/sh | |
# | |
# $FreeBSD$ | |
# | |
# PROVIDE: puppetm | |
# REQUIRE: NETWORK | |
# KEYWORD: shutdown | |
# Original: http://svnweb.freebsd.org/ports/head/sysutils/puppet/files/puppet.in?revision=332664&view=co | |
# | |
# Add the following lines to /etc/rc.conf to enable the puppet agent: | |
# | |
# puppetm_enable="YES" | |
. /etc/rc.subr | |
name="puppetm" | |
rcvar=puppetm_enable | |
load_rc_config "$name" | |
: ${puppetm_enable="NO"} | |
: ${puppetm_rundir="/var/run/puppet"} | |
: ${puppetm_confdir="/usr/local/etc/puppet"} | |
command="/usr/local/bin/puppet" | |
command_args="master ${puppetm_flags} --confdir=${puppetm_confdir} --rundir=${puppetm_rundir}" | |
command_interpreter="/usr/local/bin/ruby19" | |
unset puppetm_flags | |
pidfile="${puppetm_rundir}/master.pid" | |
start_precmd="install -d -o puppet -g puppet ${pidfile%/*}" | |
run_rc_command "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment