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