1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# manifests/puppetmaster/linux.pp
class puppet::puppetmaster::linux inherits puppet::linux {
if defined (puppet::puppetmaster::passenger) {
service{'puppetmaster':
ensure => running,
#name => apache2,
#enable => true,
pattern => 'apache2',
hasstatus => true,
start => '/etc/init.d/apache2 start',
stop => '/etc/init.d/apache2 start',
restart => '/etc/init.d/apache2 restart',
status => 'pgrep apache2',
require => [ Package[puppet] ],
}
}
else {
service{'puppetmaster':
ensure => running,
enable => true,
require => [ Package[puppet] ],
}
}
Service[puppet]{
require +> Service[puppetmaster],
}
}
|