From 455487921f507dbda10187e2dcec673c1a5587f5 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 10 Jan 2011 20:26:04 -0500 Subject: Fix up puppet/puppetmaster status method for Debian Squeeze and Sid, updating my previous commits with the fixes from LeLutin (closes: #2693) --- manifests/debian.pp | 20 +++++++++++++++++--- manifests/puppetmaster/debian.pp | 6 +++++- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/manifests/debian.pp b/manifests/debian.pp index 9f33c64..2927dd2 100644 --- a/manifests/debian.pp +++ b/manifests/debian.pp @@ -8,8 +8,22 @@ class puppet::debian inherits puppet::linux { notify => Service[puppet], owner => root, group => 0, mode => 0644; } - - File['/etc/cron.d/puppetd.cron']{ - path => '/etc/cron.d/puppetd', + + case $lsbdistcodename { + squeeze,sid: { + $real_puppet_hasstatus = true + } + default: { + $real_puppet_hasstatus = false + } + + Service[puppet]{ + hasstatus => $real_puppet_hasstatus, + } + + File['/etc/cron.d/puppetd.cron']{ + path => '/etc/cron.d/puppetd', + } } } + diff --git a/manifests/puppetmaster/debian.pp b/manifests/puppetmaster/debian.pp index fcfae83..8cee0ea 100644 --- a/manifests/puppetmaster/debian.pp +++ b/manifests/puppetmaster/debian.pp @@ -1,7 +1,11 @@ class puppet::puppetmaster::debian inherits puppet::puppetmaster::package { if $puppetmaster_mode != 'passenger' { - Service['puppetmaster'] { hasstatus => true, hasrestart => true } + case $lsbdistcodename { + squeeze,sid: { + Service['puppetmaster'] { hasstatus => true, hasrestart => true } + } + } } file { '/etc/default/puppetmaster': -- cgit v1.2.3