From: Peter Palfrader Date: Thu, 4 Aug 2016 07:36:20 +0000 (+0200) Subject: Merge onion::service absent support from tor X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=895a61068b171322d89ff074fa6ed9519dd0cede;p=mirror%2Fdsa-puppet.git Merge onion::service absent support from tor --- diff --git a/modules/onion/manifests/service.pp b/modules/onion/manifests/service.pp index b025f672d..330add7b2 100644 --- a/modules/onion/manifests/service.pp +++ b/modules/onion/manifests/service.pp @@ -41,5 +41,12 @@ define onion::service ( } } } + } elsif ($my_ensure == "absent") { + file { "/var/lib/tor/onion/${name}": + ensure => absent, + force => true, + } + } else { + fail("Invalid ensure value ${my_ensure}") } }