updated allow insatll of puppetmaster on squeeze. This addresses the
[puppet-common:puppet.git] / manifests / puppetmaster / package / debian.pp
1 class puppet::puppetmaster::package::debian inherits puppet::puppetmaster::package::base {
2
3   if !$puppetmaster_ensure_version { $puppetmaster_ensure_version = 'installed' }
4   case $lsbdistcodename {
5       wheezy,sid: {
6         $puppetmaster_common_required = 'puppetmaster-common'
7         $puppetmaster_common_ensure = $puppetmaster_ensure_version
8       }
9   }
10
11   Package["puppetmaster"]{
12         require => $puppetmaster_common_required ? {
13         '' => undef,
14         default => Package["$puppetmaster_common_required"]
15         },
16         ensure => $puppetmaster_ensure_version,
17   }
18   
19   package { "puppetmaster-common": 
20         ensure => $puppetmaster_common_ensure ? {
21         '' => absent,
22         default => $puppetmaster_common_ensure
23         },
24   }
25 }