From: Peter Palfrader Date: Tue, 7 Feb 2017 20:45:30 +0000 (+0100) Subject: only pull in xinetd if we do not try to remove files X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;ds=sidebyside;h=11b599633e529c3c146d23e730da0f901ddc1d45;hp=1e21bed9a8238b5bf8e9f348993614ee5dc60a0d;p=mirror%2Fdsa-puppet.git only pull in xinetd if we do not try to remove files --- diff --git a/modules/xinetd/manifests/service.pp b/modules/xinetd/manifests/service.pp index c348579fa..0f0b4a6e4 100644 --- a/modules/xinetd/manifests/service.pp +++ b/modules/xinetd/manifests/service.pp @@ -19,10 +19,11 @@ define xinetd::service ( $ensure=present, $ferm=true ) { - include xinetd - case $ensure { - present,absent,file: {} + present,file: { + include xinetd + } + absent: {} default: { fail("Invalid ensure for '$name'") } }