Added information about declairing a version for client and master.
[puppet-common:puppet.git] / manifests / puppetmaster / debian.pp
1 class puppet::puppetmaster::debian inherits puppet::puppetmaster::package {
2
3   if $puppetmaster_mode != 'passenger' {
4     case $lsbdistcodename {
5       squeeze,sid: {
6         Service['puppetmaster'] { hasstatus => true, hasrestart => true }
7       }
8     }
9   }
10
11   if $puppetmaster_mode == 'passenger' {
12     $puppetmaster_default_nofity = 'Exec[notify_passenger_puppetmaster]'
13   }
14   
15   file { '/etc/default/puppetmaster':
16     source => [ "puppet:///modules/site-puppet/master/debian/${fqdn}/puppetmaster",
17                 "puppet:///modules/site-puppet/master/debian/${domain}/puppetmaster",
18                 "puppet:///modules/site-puppet/master/debian/puppetmaster",
19                 "puppet:///modules/puppet/master/debian/puppetmaster" ],
20     notify => $puppetmaster_default_nofity ? {
21     '' => Service[puppetmaster],
22     default => Exec['notify_passenger_puppetmaster']
23     },
24     owner => root, group => 0, mode => 0644;
25   }
26 }