summaryrefslogtreecommitdiff
path: root/manifests/daemon/exit_policy.pp
blob: df0fb9990eea9774e564dedd4a4a6c79e4588539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# exit policies
define tor::daemon::exit_policy(
  $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,
  }
}