summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Strauss <Markus@ITstrauss.eu>2012-06-02 04:05:55 +0200
committerMarkus Strauss <Markus@ITstrauss.eu>2012-06-02 04:05:55 +0200
commitafc4b16bf5e4a2db3de04f13050556166b1a97fd (patch)
tree87f606d503f25e661841216f3a0077b1e40cb1e1
parent83f142472df5e03bc252c761c9fa5413b396845d (diff)
downloadpuppet-runit-afc4b16bf5e4a2db3de04f13050556166b1a97fd.tar.gz
puppet-runit-afc4b16bf5e4a2db3de04f13050556166b1a97fd.tar.bz2
do not create sv/env when resource is set absent
-rw-r--r--manifests/service/env.pp2
1 files changed, 1 insertions, 1 deletions
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