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.pp17
1 files changed, 10 insertions, 7 deletions
diff --git a/manifests/daemon/socks.pp b/manifests/daemon/socks.pp
index cb130d9..e36d91e 100644
--- a/manifests/daemon/socks.pp
+++ b/manifests/daemon/socks.pp
@@ -1,11 +1,14 @@
# socks definition
define tor::daemon::socks(
- $port = 0,
- $policies = [] ) {
-
- concat::fragment { '02.socks':
- content => template('tor/torrc.socks.erb'),
- order => 02,
- target => $tor::daemon::config_file,
+ $ensure = 'present',
+ $port = 0,
+ $policies = [],
+) {
+ if $ensure == 'present' {
+ concat::fragment { '02.socks':
+ content => template('tor/torrc.socks.erb'),
+ order => '02',
+ target => $tor::daemon::config_file,
+ }
}
}