diff options
author | drebs <drebs@riseup.net> | 2012-01-10 17:41:13 -0200 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2012-01-10 17:41:13 -0200 |
commit | 6e49deaaf26b693ca3538b0239ba7f998d81ef37 (patch) | |
tree | 41f0fb428b11ac621e608f15fba7dc4b9fac250d /templates/torrc.relay.erb | |
parent | 0e970df70e04129e76053b2c6eccb80610a8f197 (diff) | |
download | puppet-tor-6e49deaaf26b693ca3538b0239ba7f998d81ef37.tar.gz puppet-tor-6e49deaaf26b693ca3538b0239ba7f998d81ef37.tar.bz2 |
splitting config in many templates
Diffstat (limited to 'templates/torrc.relay.erb')
-rw-r--r-- | templates/torrc.relay.erb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/torrc.relay.erb b/templates/torrc.relay.erb new file mode 100644 index 0000000..9531c9b --- /dev/null +++ b/templates/torrc.relay.erb @@ -0,0 +1,36 @@ +# relay + +<%- if port != 0 then -%> +ORPort <%= port %> +<%- for listen_address in listen_addresses -%> +ORListenAddress <%= listen_address %> +<%- end -%> +<%- if nickname != '' then -%> +Nickname <%= nickname %> +<%- end -%> +<%- if address != '' then -%> +Address <%= address %> +<%- end -%> +<%- if relay_bandwidth_rate != '0' then -%> +RelayBandwidthRate <%= relay_bandwidth_rate %> KB +<%- end -%> +<%- if relay_bandwidth_burst != '0' then -%> +RelayBandwidthBurst <%= relay_bandwidth_burst %> KB +<%- end -%> +<%- if accounting_max != '0' then -%> +AccountingMax <%= accounting_max %> GB +<%- end -%> +<%- for accounting in accounting_start -%> +AccountingStart <%= accounting_start %> +<%- end -%> +<%- if contact_info != '' then -%> +ContactInfo <%= contact_info %> +<%- end -%> +<%- end -%> +<%- if my_family != '' then -%> +MyFamily <%= my_family %> +<%- end -%> +<%- if bridge_relay != '0' then -%> +BridgeRelay <%= bridge_relay %> +<%- end -%> + |