prometheanfire 15/07/18 23:22:16
Added: mcollective.initd puppet.initd
puppet-agent.conf.tmpfilesd puppet.service
mcollective.service
Log:
initial add of puppet-agent
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key
0x33ED3FD25AFC78BA)
Revision Changes Path
1.1 app-admin/puppet-agent/files/mcollective.initd
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/mcollective.initd?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/mcollective.initd?rev=1.1&content-type=text/plain
Index: mcollective.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/app-admin/puppet-agent/files/mcollective.initd,v 1.1
2015/07/18 23:22:16 prometheanfire Exp $
MCOLLECTIVE_PID_DIR="${MCOLLECTIVE_PID_DIR:-/var/run/puppetlabs}"
command="/usr/sbin/mcollectived"
pidfile="${MCOLLECTIVE_PID_DIR}/mcollectived.pid"
command_args="--pidfile ${pidfile}
--config=/etc/puppetlabs/mcollective/server.cfg --daemonize"
depend() {
need net
}
start_pre() {
checkpath --directory "${MCOLLECTIVE_PID_DIR}"
}
1.1 app-admin/puppet-agent/files/puppet.initd
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/puppet.initd?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/puppet.initd?rev=1.1&content-type=text/plain
Index: puppet.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet-agent/files/puppet.initd,v
1.1 2015/07/18 23:22:16 prometheanfire Exp $
PUPPET_PID_DIR="${PUPPET_PID_DIR:-/var/run/puppet}"
pidfile="${PUPPET_PID_DIR}/puppet.pid"
PUPPET_LOG_DIR="/var/log/puppetlabs/puppet"
command="/usr/bin/puppet"
extra_started_commands="reload"
command_args="agent --pidfile ${pidfile} --confdir /etc/puppetlabs/puppet
${PUPPET_EXTRA_OPTS}"
depend() {
need localmount
use dns logger puppetserver netmount nfsmount
}
start_pre() {
checkpath --directory --owner puppet:puppet "${PUPPET_PID_DIR}"
checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR}
}
reload() {
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}
1.1 app-admin/puppet-agent/files/puppet-agent.conf.tmpfilesd
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/puppet-agent.conf.tmpfilesd?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/puppet-agent.conf.tmpfilesd?rev=1.1&content-type=text/plain
Index: puppet-agent.conf.tmpfilesd
===================================================================
d /var/run/puppetlabs 0755 root root -
1.1 app-admin/puppet-agent/files/puppet.service
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/puppet.service?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/puppet.service?rev=1.1&content-type=text/plain
Index: puppet.service
===================================================================
[Unit]
Description=Puppet agent
Wants=basic.target
After=basic.target network.target
[Service]
EnvironmentFile=-/etc/sysconfig/puppetagent
EnvironmentFile=-/etc/sysconfig/puppet
EnvironmentFile=-/etc/default/puppet
ExecStart=/opt/puppetlabs/puppet/bin/puppet agent $PUPPET_EXTRA_OPTS
--no-daemonize
KillMode=process
[Install]
WantedBy=multi-user.target
1.1 app-admin/puppet-agent/files/mcollective.service
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/mcollective.service?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet-agent/files/mcollective.service?rev=1.1&content-type=text/plain
Index: mcollective.service
===================================================================
[Unit]
Description=The Marionette Collective
After=network.target
[Service]
Type=forking
StandardOutput=syslog
StandardError=syslog
ExecStart=/usr/sbin/bin/mcollectived
--config=/etc/puppetlabs/mcollective/server.cfg
--pidfile=/var/run/puppetlabs/mcollective.pid --daemonize
ExecReload=/bin/kill -USR1 $MAINPID
PIDFile=/var/run/puppetlabs/mcollective.pid
[Install]
WantedBy=multi-user.target