From: | "Matt Thode (prometheanfire)" <prometheanfire@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/puppet/files: puppetmaster.init-4.x puppet.init-4.x |
Date: | Thu, 30 Apr 2015 01:28:52 |
Message-Id: | 20150430012840.89CD29AA@oystercatcher.gentoo.org |
1 | prometheanfire 15/04/30 01:28:39 |
2 | |
3 | Added: puppetmaster.init-4.x puppet.init-4.x |
4 | Log: |
5 | more fixes for 4.0 |
6 | |
7 | (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-admin/puppet/files/puppetmaster.init-4.x |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/files/puppetmaster.init-4.x?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/files/puppetmaster.init-4.x?rev=1.1&content-type=text/plain |
14 | |
15 | Index: puppetmaster.init-4.x |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2015 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | |
21 | if [ "${SVCNAME}" = "puppetmaster" ] ; then |
22 | PUPPETMASTER_PID="master" |
23 | else |
24 | PUPPETMASTER_PID="${SVCNAME#*.}" |
25 | fi |
26 | PUPPETMASTER_PID_DIR="${PUPPETMASTER_PID_DIR:-/var/run/puppet}" |
27 | pidfile="${PUPPETMASTER_PID_DIR}/${PUPPETMASTER_PID}.pid" |
28 | PUPPET_LOG_DIR="/var/log/puppet" |
29 | |
30 | command_args="master --pidfile ${pidfile} --confdir /etc/puppetlabs/puppet ${PUPPETMASTER_EXTRA_OPTS}" |
31 | if [ -n "${PUPPETMASTER_PORT}" ] ; then |
32 | command_args="${command_args} --masterport ${PUPPETMASTER_PORT}" |
33 | fi |
34 | |
35 | command="/usr/bin/puppet" |
36 | |
37 | depend() { |
38 | need localmount |
39 | use dns logger slapd netmount nfsmount |
40 | } |
41 | |
42 | start_pre() { |
43 | checkpath --directory --owner puppet:puppet "${PUPPETMASTER_PID_DIR}" |
44 | checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} |
45 | checkpath --file --owner puppet:puppet --mode 640 "${PUPPET_LOG_DIR}/masterhttp.log" |
46 | } |
47 | |
48 | |
49 | |
50 | 1.1 app-admin/puppet/files/puppet.init-4.x |
51 | |
52 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/files/puppet.init-4.x?rev=1.1&view=markup |
53 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/puppet/files/puppet.init-4.x?rev=1.1&content-type=text/plain |
54 | |
55 | Index: puppet.init-4.x |
56 | =================================================================== |
57 | #!/sbin/runscript |
58 | # Copyright 1999-2015 Gentoo Foundation |
59 | # Distributed under the terms of the GNU General Public License v2 |
60 | |
61 | PUPPET_PID_DIR="${PUPPET_PID_DIR:-/var/run/puppet}" |
62 | |
63 | pidfile="${PUPPET_PID_DIR}/puppet.pid" |
64 | PUPPET_LOG_DIR="/var/log/puppet" |
65 | |
66 | extra_started_commands="reload" |
67 | |
68 | command="/usr/bin/puppet" |
69 | |
70 | command_args="agent --pidfile ${pidfile} --confdir /etc/puppetlabs/puppet ${PUPPET_EXTRA_OPTS}" |
71 | |
72 | depend() { |
73 | need localmount |
74 | use dns logger puppetmaster netmount nfsmount |
75 | } |
76 | |
77 | start_pre() { |
78 | checkpath --directory --owner puppet:puppet "${PUPPET_PID_DIR}" |
79 | checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR} |
80 | } |