summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/linux.pp
blob: 062d9071ce08c096e7ba3ae7f5ec5c77ffaf6ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class puppet::puppetmaster::linux inherits puppet::linux {
  
  if defined (puppet::puppetmaster::passenger) {
	  service{'puppetmaster':
	    ensure => running,
  	  #name => apache2,
	    #enable => true,
  	  pattern => 'apache2',
	    hasstatus => true,
  	  start => '/etc/init.d/apache2 start',
	    stop => '/etc/init.d/apache2 start',
	    restart => '/etc/init.d/apache2 restart',
  	  status => 'pgrep apache2',
	    require => [ Package[puppet] ],
	  }
  } else {
	  service{'puppetmaster':
	    ensure => running,
  	  enable => true,
	    require => [ Package[puppet] ],
  	}
  }
  Service[puppet]{
    require +> Service[puppetmaster],
  }
}