blob: 390d9b580157fedab30f07f6c89bf3c976c31f18 (
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
30
31
32
33
34
35
36
37
|
class puppet::master::base inherits puppet::base {
file { $puppet::master::fileserver:
source => [ "puppet:///modules/site_puppet/master/${::fqdn}/fileserver.conf",
"puppet:///modules/site_puppet/master/fileserver.conf",
"puppet:///modules/puppet/master/fileserver.conf" ],
owner => root, group => puppet, mode => 640;
}
File['puppet_config']{
source => [ "puppet:///modules/site_puppet/master/${::fqdn}/puppet.conf",
"puppet:///modules/site_puppet/master/puppet.conf",
"puppet:///modules/puppet/master/puppet.conf" ]
}
if $puppet::master::storeconfigs {
include puppet::master::storeconfigs
}
if $puppet::master::mode == 'passenger' {
include puppet::master::passenger
File[$puppet::master::fileserver]{
notify => Exec['notify_passenger_puppetmaster'],
}
File[puppet_config]{
notify => Exec['notify_passenger_puppetmaster'],
}
} else {
File[$puppet::master::fileserver]{
notify => Service[puppetmaster],
}
File[puppet_config]{
notify => Service[puppetmaster],
}
}
}
|