diff options
author | mh <mh@immerda.ch> | 2017-08-30 18:30:12 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2017-08-30 18:30:12 +0200 |
commit | 1fcbe72115d57d53fced2777c8b54a4ee4ec17e9 (patch) | |
tree | 84f2a8c9c60de39b14b41f69ba6f4232b108d055 /manifests/daemon/snippet.pp | |
parent | 1fef62f18dcbcf0f1995603b8f595f67ebf483d5 (diff) |
make it work with newer concat module
Diffstat (limited to 'manifests/daemon/snippet.pp')
-rw-r--r-- | manifests/daemon/snippet.pp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/daemon/snippet.pp b/manifests/daemon/snippet.pp index 1f22d0c..195ed77 100644 --- a/manifests/daemon/snippet.pp +++ b/manifests/daemon/snippet.pp @@ -1,13 +1,15 @@ # Arbitrary torrc snippet definition define tor::daemon::snippet( + $ensure = 'present', $content = '', - $ensure = present ) { +) { - concat::fragment { "99.snippet.${name}": - ensure => $ensure, - content => $content, - order => '99', - target => $tor::daemon::config_file, + if $ensure == 'present' { + concat::fragment { "99.snippet.${name}": + content => $content, + order => '99', + target => $tor::daemon::config_file, + } } } |