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, 9 insertions, 6 deletions
diff --git a/manifests/daemon/dns.pp b/manifests/daemon/dns.pp
index 599abd8..899f920 100644
--- a/manifests/daemon/dns.pp
+++ b/manifests/daemon/dns.pp
@@ -1,11 +1,14 @@
# DNS definition
define tor::daemon::dns(
- $port = 0 ) {
-
- concat::fragment { "08.dns.${name}":
- content => template('tor/torrc.dns.erb'),
- order => '08',
- target => $tor::daemon::config_file,
+ $ensure = 'present',
+ $port = 0,
+){
+ if $ensure == 'present' {
+ concat::fragment { "08.dns.${name}":
+ content => template('tor/torrc.dns.erb'),
+ order => '08',
+ target => $tor::daemon::config_file,
+ }
}
}