Make syncproxy mirror basedir configurable in hiera, and use it in all templates...
[mirror/dsa-puppet.git] / modules / roles / templates / syncproxy / syncproxy.debian.org-index.html.erb
index ef9fdfc..4d16f1b 100644 (file)
@@ -19,7 +19,7 @@ This syncproxy contains copies of the following archives.
 <%=
 lines = []
 %w{debian debian-debug debian-ports debian-security}.each do |archive|
-  varname = 'has_srv_mirrors_' + archive.gsub(/[\/-]/,'_')
+  varname = ('has' + @mirror_basedir_prefix + archive).gsub(/[\/-]/,'_')
   if has_variable?(varname) and (eval("@"+varname))
     lines << "<li>#{archive} [<a href=\"/#{archive}/project/trace/\">trace directory</a>]</li>"
   end