diff options
Diffstat (limited to 'manifests/master/linux.pp')
-rw-r--r-- | manifests/master/linux.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/master/linux.pp b/manifests/master/linux.pp new file mode 100644 index 0000000..e52db63 --- /dev/null +++ b/manifests/master/linux.pp @@ -0,0 +1,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], + } + } +} |