diff options
Diffstat (limited to 'manifests/daemon.pp')
-rw-r--r-- | manifests/daemon.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 4911cd0..ac8529c 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -190,5 +190,19 @@ class tor::daemon inherits tor { ensure => $ensure, } } + + # DNS definition + define dns( $port = 0, + $listen_addresses = [], + $ensure = present ) { + + concatenated_file_part { "08.dns.${name}": + dir => $tor::daemon::snippet_dir, + content => template('tor/torrc.dns.erb'), + owner => 'debian-tor', group => 'debian-tor', mode => 0644, + ensure => $ensure, + } + } + } |