aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-06-20 23:24:30 -0300
committerintrigeri <intrigeri@boum.org>2012-07-07 19:02:14 +0200
commited98955cec143ee81b09a525318518825b86a791 (patch)
tree13d7920ebfd696dac5daff74f48fff64c248efc5 /manifests
parent7bf57976706f73881d18bbaea0e7f87b7f1c3b40 (diff)
downloadpuppet-tor-ed98955cec143ee81b09a525318518825b86a791.tar.gz
puppet-tor-ed98955cec143ee81b09a525318518825b86a791.tar.bz2
Adding support for MapAddress tor option
Diffstat (limited to 'manifests')
-rw-r--r--manifests/daemon.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index 6d8c315..d1d57df 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -184,5 +184,17 @@ class tor::daemon inherits tor {
ensure => $ensure,
}
}
+
+ # map address definition
+ define map_address( $address = '',
+ $newaddress = '') {
+
+ concatenated_file_part { "08.map_address.${name}":
+ dir => $tor::daemon::snippet_dir,
+ content => template('tor/torrc.map_address.erb'),
+ owner => 'debian-tor', group => 'debian-tor', mode => 0644,
+ ensure => $ensure,
+ }
+ }
}