From efbcd9bbbe5fe95ab0500b79633d69f22fc63359 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 14 Mar 2012 13:05:14 -0400 Subject: add ExitPolicyRejectPrivate option to exit_policy define --- manifests/daemon.pp | 1 + templates/torrc.exit_policy.erb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 73014b3..173e565 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -174,6 +174,7 @@ class tor::daemon inherits tor { # exit policies define exit_policy( $accept = [], $reject = [], + $reject_private = 1, $ensure = present ) { concatenated_file_part { "07.exit_policy.${name}": diff --git a/templates/torrc.exit_policy.erb b/templates/torrc.exit_policy.erb index 4732ad6..92367c2 100644 --- a/templates/torrc.exit_policy.erb +++ b/templates/torrc.exit_policy.erb @@ -1,4 +1,7 @@ # exit policies: <%= name %> +<%- if reject_private != 1 then -%> +ExitPolicyRejectPrivate <%= reject_private %> +<%- end -%> <%- for policy in accept -%> ExitPolicy accept <%= policy %> <%- end -%> -- cgit v1.2.3