summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/debian.pp
blob: 853a0e612f8472d55cb48e9eb1e5e69fb5a9b17a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class puppet::puppetmaster::debian inherits puppet::puppetmaster::package {

  if $puppetmaster_mode != 'passenger' {
    case $lsbdistcodename {
      squeeze,sid: {
        Service['puppetmaster'] { hasstatus => true, hasrestart => true }
      }
    }
  }

  file { '/etc/default/puppetmaster':
    source => [ "puppet:///modules/site-puppet/master/debian/${fqdn}/puppetmaster",
                "puppet:///modules/site-puppet/master/debian/${domain}/puppetmaster",
                "puppet:///modules/site-puppet/master/debian/puppetmaster",
                "puppet:///modules/puppet/master/debian/puppetmaster" ],
    notify => $puppetmaster_mode ? {
      'passenger' => Exec['notify_passenger_puppetmaster'],
      default => Service[puppetmaster],
    },
    owner => root, group => 0, mode => 0644;
  }
}