File tree Expand file tree Collapse file tree 5 files changed +51
-5
lines changed Expand file tree Collapse file tree 5 files changed +51
-5
lines changed Original file line number Diff line number Diff line change 151
151
152
152
if $puppet_run_style == ' service' {
153
153
$startonboot = ' yes'
154
+ $daemonize = true
154
155
}
155
156
else {
156
157
$startonboot = ' no'
158
+ $daemonize = false
157
159
}
160
+
158
161
159
162
if ($::osfamily == ' Debian' and $puppet_run_style != ' manual' ) or ($::osfamily == ' Redhat' ) {
160
163
file { $puppet::params::puppet_defaults :
165
168
content => template (" puppet/${puppet::params::puppet_defaults} .erb" ),
166
169
}
167
170
}
171
+ elsif $::osfamily == ' Darwin' {
172
+ file {'/Library/LaunchDaemons/com.puppetlabs.puppet.plist' :
173
+ mode => ' 0644' ,
174
+ owner => ' root' ,
175
+ group => ' wheel' ,
176
+ content => template (' puppet/launchd/com.puppetlabs.puppet.plist.erb' ),
177
+ }
178
+ }
168
179
169
180
if ! defined (File [$::puppet::params::confdir ]) {
170
181
file { $::puppet::params::confdir :
525
536
value => $serialization_format ,
526
537
}
527
538
}
528
- }
539
+ }
Original file line number Diff line number Diff line change 386
386
}
387
387
}
388
388
anchor { 'puppet::master::end' : }
389
- }
389
+ }
Original file line number Diff line number Diff line change 96
96
}
97
97
' Darwin' : {
98
98
$puppet_agent_service = ' com.puppetlabs.puppet'
99
- $puppet_agent_package = ' puppet-3.8.5 .dmg'
100
- $puppet_facter_package = ' facter-2.4.5 .dmg'
99
+ $puppet_agent_package = ' puppet-3.8.6 .dmg'
100
+ $puppet_facter_package = ' facter-2.4.6 .dmg'
101
101
$package_provider = ' pkgdmg'
102
+ $puppet_conf = ' /etc/puppet/puppet.conf'
103
+ $puppet_vardir = ' /var/lib/puppet'
104
+ $puppet_ssldir = ' /var/lib/puppet/ssl'
102
105
}
103
106
default: {
104
107
err (' The Puppet module does not support your os' )
Original file line number Diff line number Diff line change 202
202
value => ' SSL_CLIENT_VERIFY' ,
203
203
require => File [$puppet_conf ],
204
204
}
205
- }
205
+ }
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