File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 147
147
148
148
if $puppet_run_style == ' service' {
149
149
$startonboot = ' yes'
150
+ $daemonize = true
150
151
}
151
152
else {
152
153
$startonboot = ' no'
154
+ $daemonize = false
153
155
}
156
+
154
157
155
158
if ($::osfamily == ' Debian' and $puppet_run_style != ' manual' ) or ($::osfamily == ' Redhat' ) {
156
159
file { $puppet::params::puppet_defaults :
161
164
content => template (" puppet/${puppet::params::puppet_defaults} .erb" ),
162
165
}
163
166
}
167
+ elsif $::osfamily == ' Darwin' {
168
+ file {'/Library/LaunchDaemons/com.puppetlabs.puppet.plist' :
169
+ mode => ' 0644' ,
170
+ owner => ' root' ,
171
+ group => ' wheel' ,
172
+ content => template (' puppet/launchd/com.puppetlabs.puppet.plist.erb' ),
173
+ }
174
+ }
164
175
165
176
if ! defined (File [$::puppet::params::confdir ]) {
166
177
file { $::puppet::params::confdir :
Original file line number Diff line number Diff line change
1
+ < ?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ < plist version ="1.0 ">
4
+ < dict >
5
+ < key > Disabled</ key >
6
+ < true />
7
+ < key > Label</ key >
8
+ < string > com.puppetlabs.puppet</ string >
9
+ < key > OnDemand</ key >
10
+ < false />
11
+ < key > ProgramArguments</ key >
12
+ < array >
13
+ < string > /usr/bin/puppet</ string >
14
+ < string > agent</ string >
15
+ <%- if @puppet_run_style == "service" -%>
16
+ < string > daemonize</ string >
17
+ <%- else -%>
18
+ < string > no-daemonize</ string >
19
+ <%- end -%>
20
+ < string > --logdest</ string >
21
+ < string > syslog</ string >
22
+ < string > --color</ string >
23
+ < string > false</ string >
24
+ </ array >
25
+ < key > RunAtLoad</ key >
26
+ < true />
27
+ < key > ServiceDescription</ key >
28
+ < string > Puppet agent service</ string >
29
+ < key > ServiceIPC</ key >
30
+ < false />
31
+ </ dict >
32
+ </ plist >
You can’t perform that action at this time.
0 commit comments