aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/daemon.pp14
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,
+ }
+ }
+
}