X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Froles%2Ftemplates%2Fsyncproxy%2Fsyncproxy.debian.org-apache.erb;h=eb59b0c8cc463354d62907a13c459434abe4e693;hb=dbb404fee8cec36d622fe55b31b2c7e67694ae8d;hp=e81cbe3085ade100c5e110ccdf7aea8b1e95b35d;hpb=f7b6fdd2d515765d88696ced52fb0e7e4dda06c0;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb b/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb index e81cbe308..eb59b0c8c 100644 --- a/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb +++ b/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb @@ -3,20 +3,11 @@ ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git ## -<% - vhost_listen = [ (@bind != '') ? "#{@bind}" : "*", (@bind6 != '') ? "#{@bind6}" : "*"].uniq - vhost_listen_443 = [ (@bind != '') ? "#{@bind}:443" : "*:443", (@bind6 != '') ? "[#{@bind6}]:443" : "*:443"].uniq -%> +<% @binds.each do |bind| -%> + Use common-debian-service-https-redirect "<%= bind %>" "<%= @syncproxy_name %>" +<% end -%> -<%= -lines = [] -vhost_listen.each do |bind| - lines << "Use common-debian-service-https-redirect \"#{bind}\" \"#{@syncproxy_name}\"" -end -lines.join("\n") - -%> - > + > ServerName <%= @syncproxy_name %> DocumentRoot /srv/www/syncproxy.debian.org/htdocs