summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/linux.pp
blob: 7c2e428c632333a9d291dc29d01281678b3f1743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class puppet::puppetmaster::linux inherits puppet::linux {
  
  if $puppetmaster_mode == 'passenger' {

    require('apache::base')
    
    exec { 'notify_passenger_puppetmaster':
      refreshonly => true,
      #command => 'touch /etc/puppet/rack/tmp/restart.txt && sleep 1 && rm /etc/puppet/rack/tmp/restart.txt',
      command => '/etc/init.d/apache2 reload',
    }

  } else {
    service { 'puppetmaster':
      ensure => running,
      enable => true,
      require => [ Package[puppet] ],
    }
    Service[puppet]{
      require +> Service[puppetmaster],
    }
  }
}