diff options
Diffstat (limited to 'manifests/disable')
-rw-r--r-- | manifests/disable/base.pp | 12 | ||||
-rw-r--r-- | manifests/disable/debian.pp | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/manifests/disable/base.pp b/manifests/disable/base.pp new file mode 100644 index 0000000..5c56c70 --- /dev/null +++ b/manifests/disable/base.pp @@ -0,0 +1,12 @@ +class postfix::disable::base { + + service{'postfix': + ensure => stopped, + enable => false, + } + package{'postfix': + ensure => absent, + require => Service['postfix'], + } + +} diff --git a/manifests/disable/debian.pp b/manifests/disable/debian.pp new file mode 100644 index 0000000..213efc5 --- /dev/null +++ b/manifests/disable/debian.pp @@ -0,0 +1,11 @@ +# debian has some issues with absent +# init scripts. +# It's a bug in debian's provider that should be fixed in puppet, but in the +# meantime we need this hack. +# +# see: https://projects.puppetlabs.com/issues/9381 +class postfix::disable::debian inherits postfix::disable::base { + Service['postfix']{ + hasstatus => false, + } +} |