puppet/svn/templates/servers.erb
Ossi Salmi 748d5d4802 Readded check for http_proxy variable in svn servers.erb template
Apparenly file templates are parsed even when ensure => false.
2012-12-05 20:43:00 +02:00

9 lines
252 B
Text

<%
if has_variable?("http_proxy")
http_proxy_host, http_proxy_port = http_proxy.split(":")
http_proxy_port = "80" if http_proxy_port.nil?
-%>
[global]
http-proxy-host = <%= http_proxy_host %>
http-proxy-port = <%= http_proxy_port %>
<% end -%>