summaryrefslogtreecommitdiff
path: root/manifests/daemon/exit_policy.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/daemon/exit_policy.pp')
-rw-r--r--manifests/daemon/exit_policy.pp15
1 files changed, 9 insertions, 6 deletions
diff --git a/manifests/daemon/exit_policy.pp b/manifests/daemon/exit_policy.pp
index c117d5d..62876c7 100644
--- a/manifests/daemon/exit_policy.pp
+++ b/manifests/daemon/exit_policy.pp
@@ -1,13 +1,16 @@
# exit policies
define tor::daemon::exit_policy(
+ $ensure = 'present',
$accept = [],
$reject = [],
- $reject_private = 1 ) {
-
- concat::fragment { "07.exit_policy.${name}":
- content => template('tor/torrc.exit_policy.erb'),
- order => 07,
- target => $tor::daemon::config_file,
+ $reject_private = 1,
+) {
+ if $ensure == 'present' {
+ concat::fragment { "07.exit_policy.${name}":
+ content => template('tor/torrc.exit_policy.erb'),
+ order => '07',
+ target => $tor::daemon::config_file,
+ }
}
}