Last active
October 4, 2016 19:44
-
-
Save shadowbq/7876201 to your computer and use it in GitHub Desktop.
FreeBSD rubyX rc.d/puppet.conf
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: puppet | |
# 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: | |
# | |
# puppet_enable="YES" | |
. /etc/rc.subr | |
name="puppet" | |
rcvar=puppet_enable | |
load_rc_config "$name" | |
: ${puppet_enable="NO"} | |
command="/usr/local/bin/puppet" | |
command_args="agent ${puppet_flags}" | |
command_interpreter="/usr/local/bin/ruby22" | |
unset puppet_flags | |
pidfile="/var/run/puppetlabs/agent.pid" | |
start_precmd="install -d -o puppet -g puppet ${pidfile%/*}" | |
run_rc_command "$1" |
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: puppet | |
# 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: | |
# | |
# puppet_enable="YES" | |
. /etc/rc.subr | |
name="puppet" | |
rcvar=puppet_enable | |
load_rc_config "$name" | |
: ${puppet_enable="NO"} | |
command="/usr/local/bin/puppet" | |
command_args="agent ${puppet_flags}" | |
command_interpreter="/usr/local/bin/ruby21" | |
unset puppet_flags | |
pidfile="/var/run/puppetlabs/agent.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
Rev5 - puppet 4.x with ruby 22