summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/linux.pp
blob: 2670203134c778e0ea1fbbd6226f0a64dc2b7769 (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 => '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],
  }
}