aboutsummaryrefslogtreecommitdiff
path: root/manifests/disable.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-05-20 18:54:13 +0200
committermh <mh@immerda.ch>2013-05-20 18:54:13 +0200
commit39f1218960348d43bd368bff546d9467a1264e0d (patch)
treeb25b37b9003f02f3226a3cf949e4938e8511808e /manifests/disable.pp
parent8e43dc85da5a5e45e88aef5f7c32c9cc1c35201c (diff)
downloadpuppet-postfix-39f1218960348d43bd368bff546d9467a1264e0d.tar.gz
puppet-postfix-39f1218960348d43bd368bff546d9467a1264e0d.tar.bz2
debian's service provider has some issues if the script is absent, we can workaround this problem using the trick of this patch
Diffstat (limited to 'manifests/disable.pp')
-rw-r--r--manifests/disable.pp13
1 files changed, 4 insertions, 9 deletions
diff --git a/manifests/disable.pp b/manifests/disable.pp
index f41e03c..c233ec6 100644
--- a/manifests/disable.pp
+++ b/manifests/disable.pp
@@ -1,12 +1,7 @@
+# remove postfix
class postfix::disable {
-
- service{'postfix':
- ensure => stopped,
- enable => false,
+ case $::operatingsystem {
+ debian: { include postfix::disable::debian }
+ default: { include postfix::disable::base }
}
- package{'postfix':
- ensure => absent,
- require => Service['postfix'],
- }
-
}