diff options
author | Rene Ladan <rene@FreeBSD.org> | 2021-07-05 11:04:31 +0200 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2021-07-05 11:04:52 +0200 |
commit | 09c05e179fe478091ebb7715d37462589010de8f (patch) | |
tree | 6de49762d5200e0cc395d79094ee37efd5976b09 /sysutils/puppet5/files/puppetmaster.in | |
parent | games/NBlood: fix build on powerpc (diff) |
cleanup: Remove expired ports:
2021-07-01 databases/puppetdb5: Puppet 5 has reached EOL
2021-07-01 sysutils/puppet5: Puppet 5 has reached EOL
2021-07-01 sysutils/puppetserver5: Puppet 5 has reached EOL
2021-07-01 databases/puppetdb-terminus5: Puppet 5 has reached EOL
Diffstat (limited to 'sysutils/puppet5/files/puppetmaster.in')
-rw-r--r-- | sysutils/puppet5/files/puppetmaster.in | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/sysutils/puppet5/files/puppetmaster.in b/sysutils/puppet5/files/puppetmaster.in deleted file mode 100644 index fcd0fffe74c9..000000000000 --- a/sysutils/puppet5/files/puppetmaster.in +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -# PROVIDE: puppetmaster -# REQUIRE: LOGIN - -# Add the following lines to /etc/rc.conf to enable the puppetmaster: -# -# puppetmaster_enable="YES" -# - -. /etc/rc.subr - -name="puppetmaster" -rcvar=puppetmaster_enable - -load_rc_config "${name}" - -: ${puppetmaster_enable="NO"} -: ${puppetmaster_rundir="/var/run/puppet"} -: ${puppetmaster_flags="--rundir=${puppetmaster_rundir}"} - -command_interpreter=%%RUBY%% -command="%%PREFIX%%/bin/puppet" -command_args="master ${puppetmaster_flags}" -unset puppetmaster_flags - -pidfile="${puppetmaster_rundir}/master.pid" - -start_precmd="puppetmaster_checkconfig" -restart_precmd="puppetmaster_checkconfig" -puppetmaster_checkconfig() { - puppet_manifest="$($command config print --section=main manifest 2> /dev/null)" - cat << EOT -================================================================================ -The Rack and WEBrick Puppet master servers are deprecated and will be removed -in a future release. Please use Puppet Server instead (sysutils/puppetserver5). - -See http://links.puppet.com/deprecate-rack-webrick-servers for more information. -================================================================================ -EOT - echo -n "Performing sanity check of ${name} configuration: " - if ! ${command} parser validate "${puppet_manifest}" - then - echo "FAILED" - return 1 - else - echo "OK" - return 0 - fi -} - -if [ -z "${puppetmaster_mongrel_ports}" ]; then - run_rc_command "$1" -else - for port in ${puppetmaster_mongrel_ports}; do - pidfile="${puppetmaster_rundir}/mongrel.${port}.pid" - command_args="master --pidfile=${pidfile} --servertype=mongrel --masterport=${port}" - run_rc_command "$1" - _rc_restart_done="false" - done -fi |