From afc4b16bf5e4a2db3de04f13050556166b1a97fd Mon Sep 17 00:00:00 2001 From: Markus Strauss Date: Sat, 2 Jun 2012 04:05:55 +0200 Subject: do not create sv/env when resource is set absent --- manifests/service/env.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/service/env.pp b/manifests/service/env.pp index 2699533..e895820 100644 --- a/manifests/service/env.pp +++ b/manifests/service/env.pp @@ -4,7 +4,7 @@ define runit::service::env( $service, $value, $ensure = present ) { $envdir = "/etc/sv/${service}/env" # create this directory if at least one environment variable is defined - if !defined( File["/etc/sv/${service}/env"] ) { + if $ensure == present and !defined( File["/etc/sv/${service}/env"] ) { file{ "/etc/sv/${service}/env": ensure => directory, # all unmanaged envs. will be removed -- cgit v1.2.3