diff options
author | Keith aka fugit <fugit13@gmail.com> | 2011-04-13 10:35:57 -0400 |
---|---|---|
committer | Keith aka fugit <fugit13@gmail.com> | 2011-04-13 10:35:57 -0400 |
commit | 51c7b390694d95e7096e33317de4242d67ca7e38 (patch) | |
tree | 8d2692d2ce09ed4bd904c597aff0485f0f6ba603 /manifests/puppetmaster/package/debian.pp | |
parent | 3bcfd81f64f504cb9be05ccdb8b81652ff872d0f (diff) |
updated allow insatll of puppetmaster on squeeze. This addresses the
package diferences.
Diffstat (limited to 'manifests/puppetmaster/package/debian.pp')
-rw-r--r-- | manifests/puppetmaster/package/debian.pp | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/manifests/puppetmaster/package/debian.pp b/manifests/puppetmaster/package/debian.pp index 33d7d5e..4c4f68b 100644 --- a/manifests/puppetmaster/package/debian.pp +++ b/manifests/puppetmaster/package/debian.pp @@ -1,6 +1,25 @@ -class puppet::puppetmaster::package::debian inherits puppet::puppetmaster::package { +class puppet::puppetmaster::package::debian inherits puppet::puppetmaster::package::base { - Package['puppetmaster']{ - require => Package['puppetmaster-common'] + if !$puppetmaster_ensure_version { $puppetmaster_ensure_version = 'installed' } + case $lsbdistcodename { + wheezy,sid: { + $puppetmaster_common_required = 'puppetmaster-common' + $puppetmaster_common_ensure = $puppetmaster_ensure_version + } + } + + Package["puppetmaster"]{ + require => $puppetmaster_common_required ? { + '' => undef, + default => Package["$puppetmaster_common_required"] + }, + ensure => $puppetmaster_ensure_version, + } + + package { "puppetmaster-common": + ensure => $puppetmaster_common_ensure ? { + '' => absent, + default => $puppetmaster_common_ensure + }, } } |