summaryrefslogtreecommitdiff
path: root/manifests/daemon/snippet.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/daemon/snippet.pp')
-rw-r--r--manifests/daemon/snippet.pp14
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,
+ }
}
}