From ff149a1c48e988f2c8ad8e69b582b0c6c0895401 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 23 Feb 2018 23:30:01 +0100 Subject: keep the syntax of config snippes consistent --- manifests/daemon/socks.pp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'manifests/daemon/socks.pp') 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, + } } } -- cgit v1.2.3