diff options
Diffstat (limited to 'manifests/daemon/exit_policy.pp')
-rw-r--r-- | manifests/daemon/exit_policy.pp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/manifests/daemon/exit_policy.pp b/manifests/daemon/exit_policy.pp index 5f4d3e8..62876c7 100644 --- a/manifests/daemon/exit_policy.pp +++ b/manifests/daemon/exit_policy.pp @@ -1,15 +1,16 @@ # exit policies define tor::daemon::exit_policy( + $ensure = 'present', $accept = [], $reject = [], $reject_private = 1, - $ensure = present ) { - - concat::fragment { "07.exit_policy.${name}": - ensure => $ensure, - content => template('tor/torrc.exit_policy.erb'), - order => '07', - target => $tor::daemon::config_file, +) { + if $ensure == 'present' { + concat::fragment { "07.exit_policy.${name}": + content => template('tor/torrc.exit_policy.erb'), + order => '07', + target => $tor::daemon::config_file, + } } } |