summaryrefslogtreecommitdiff
path: root/manifests/daemon/socks.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/daemon/socks.pp')
-rw-r--r--manifests/daemon/socks.pp13
1 files changed, 8 insertions, 5 deletions
diff --git a/manifests/daemon/socks.pp b/manifests/daemon/socks.pp
index 76c1703..e36d91e 100644
--- a/manifests/daemon/socks.pp
+++ b/manifests/daemon/socks.pp
@@ -1,11 +1,14 @@
# socks definition
define tor::daemon::socks(
- $port = 0,
+ $ensure = 'present',
+ $port = 0,
$policies = [],
) {
- concat::fragment { '02.socks':
- content => template('tor/torrc.socks.erb'),
- order => '02',
- target => $tor::daemon::config_file,
+ if $ensure == 'present' {
+ concat::fragment { '02.socks':
+ content => template('tor/torrc.socks.erb'),
+ order => '02',
+ target => $tor::daemon::config_file,
+ }
}
}