summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/linux.pp
blob: 2a71dd46d9c844a1f895bd5eef5c99f1a1c84b10 (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
27
28
29
# manifests/puppetmaster/linux.pp

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],
    }
}