diff options
author | mh <mh@immerda.ch> | 2018-02-23 23:30:01 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2018-02-23 23:30:01 +0100 |
commit | ff149a1c48e988f2c8ad8e69b582b0c6c0895401 (patch) | |
tree | 3b12d6ac050c6df995d2e4ab191404f83c407156 /manifests/daemon/transport_plugin.pp | |
parent | 24c5d04259971af0033c86fdf90c6f9c22974600 (diff) |
keep the syntax of config snippes consistent
Diffstat (limited to 'manifests/daemon/transport_plugin.pp')
-rw-r--r-- | manifests/daemon/transport_plugin.pp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/manifests/daemon/transport_plugin.pp b/manifests/daemon/transport_plugin.pp index 1921282..4f7bbf2 100644 --- a/manifests/daemon/transport_plugin.pp +++ b/manifests/daemon/transport_plugin.pp @@ -1,13 +1,16 @@ # transport plugin define tor::daemon::transport_plugin( + $ensure = 'present', $servertransport_plugin = '', $servertransport_listenaddr = '', $servertransport_options = '', - $ext_port = '' ) { - - concat::fragment { '11.transport_plugin': - content => template('tor/torrc.transport_plugin.erb'), - order => 11, - target => $tor::daemon::config_file, + $ext_port = '', +) { + if $ensure == 'present' { + concat::fragment { '11.transport_plugin': + content => template('tor/torrc.transport_plugin.erb'), + order => 11, + target => $tor::daemon::config_file, + } } } |