blob: e52db6372632c11c9cef288b1ec1d7fb3b9bf4a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
class puppet::master::linux inherits puppet::linux {
if $puppet::master::mode == 'passenger' {
exec { 'notify_passenger_puppetmaster':
refreshonly => true,
command => 'touch /etc/puppet/rack/tmp/restart.txt && sleep 1 && rm /etc/puppet/rack/tmp/restart.txt',
}
} else {
service { 'puppetmaster':
ensure => running,
enable => true,
require => [ Package[puppet] ],
}
Service[puppet]{
require +> Service[puppetmaster],
}
}
}
|