summaryrefslogtreecommitdiff
path: root/puppet/modules/tor/manifests/daemon/dns.pp
blob: e8d4fc88dc3c5ae792eeab33f16967a6309bc669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# DNS definition
define tor::daemon::dns(
  $port             = 0,
  $listen_addresses = [],
  $ensure           = present ) {

  concat::fragment { "08.dns.${name}":
    ensure  => $ensure,
    content => template('tor/torrc.dns.erb'),
    order   => '08',
    target  => $tor::daemon::config_file,
  }
}