diff options
Diffstat (limited to 'manifests/daemon.pp')
-rw-r--r-- | manifests/daemon.pp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 8f6d80d..7661a43 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -193,5 +193,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, + } + } } |