summaryrefslogtreecommitdiff
path: root/manifests/daemon/socks.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2018-02-23 23:30:01 +0100
committermh <mh@immerda.ch>2018-02-23 23:30:01 +0100
commitff149a1c48e988f2c8ad8e69b582b0c6c0895401 (patch)
tree3b12d6ac050c6df995d2e4ab191404f83c407156 /manifests/daemon/socks.pp
parent24c5d04259971af0033c86fdf90c6f9c22974600 (diff)
keep the syntax of config snippes consistent
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,
+ }
}
}