summaryrefslogtreecommitdiff
path: root/manifests/debian.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/debian.pp')
-rw-r--r--manifests/debian.pp20
1 files changed, 17 insertions, 3 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',
+ }
}
}
+