mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
This is version 4.x of sysutils/puppet, which is in some large parts incompatible with previous versions. As the C++ rewrite of facter is not resolving some required facts on FreeBSD yet, default to the old version written in Ruby for now.
33 lines
579 B
Bash
33 lines
579 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: puppet
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable the puppet agent:
|
|
#
|
|
# puppet_enable="YES"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="puppet"
|
|
rcvar=puppet_enable
|
|
|
|
load_rc_config "$name"
|
|
|
|
: ${puppet_enable="NO"}
|
|
: ${puppet_rundir="/var/run/puppet"}
|
|
|
|
command="%%PREFIX%%/bin/puppet"
|
|
command_args="agent ${puppet_flags} --rundir=${puppet_rundir}"
|
|
command_interpreter=%%RUBY%%
|
|
unset puppet_flags
|
|
|
|
pidfile="${puppet_rundir}/agent.pid"
|
|
start_precmd="install -d -o puppet -g puppet ${pidfile%/*}"
|
|
|
|
run_rc_command "$1"
|