diff options
author | Louis-Philippe VĂ©ronneau <pollito@riseup.net> | 2018-03-06 17:29:54 +0000 |
---|---|---|
committer | Louis-Philippe VĂ©ronneau <pollito@riseup.net> | 2018-03-06 17:29:54 +0000 |
commit | 7c40929d8a2a9438ccd883e9d856d526b852da8c (patch) | |
tree | d8529a383482db6cd716c16074e6b798c1069e7b /manifests/daemon/snippet.pp | |
parent | 228ae4a53999dbc49fa7c4d2883468dde10f19fb (diff) | |
parent | 6ebebe3ab04e8ba3d4b651e49012646046642160 (diff) |
Merge branch 'immerda-merge' into 'master'
Immerda merge
Closes #2
See merge request shared-puppet-modules-group/tor!19
Diffstat (limited to 'manifests/daemon/snippet.pp')
-rw-r--r-- | manifests/daemon/snippet.pp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/manifests/daemon/snippet.pp b/manifests/daemon/snippet.pp index 5a4c091..195ed77 100644 --- a/manifests/daemon/snippet.pp +++ b/manifests/daemon/snippet.pp @@ -1,11 +1,15 @@ # Arbitrary torrc snippet definition define tor::daemon::snippet( - $content = '' ) { + $ensure = 'present', + $content = '', +) { - concat::fragment { "99.snippet.${name}": - 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, + } } } |