summaryrefslogtreecommitdiff
path: root/manifests/daemon/dns.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/daemon/dns.pp')
-rw-r--r--manifests/daemon/dns.pp15
1 files changed, 8 insertions, 7 deletions
diff --git a/manifests/daemon/dns.pp b/manifests/daemon/dns.pp
index e8d4fc8..3ae8c77 100644
--- a/manifests/daemon/dns.pp
+++ b/manifests/daemon/dns.pp
@@ -1,14 +1,15 @@
# DNS definition
define tor::daemon::dns(
+ $ensure = 'present',
$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,
+){
+ if $ensure == 'present' {
+ concat::fragment { "08.dns.${name}":
+ content => template('tor/torrc.dns.erb'),
+ order => '08',
+ target => $tor::daemon::config_file,
+ }
}
}