-
- <%- if @hostname != "lotti" -%>
-destination loghost-lotti {
- tcp("lotti.debian.org" port (5140)
- tls( key_file("/etc/ssl/private/thishost.key")
- cert_file("/etc/ssl/debian/certs/thishost.crt")
- ca_dir("/etc/ssl/debian/certs/")
- )
- );
-};
- <%- end -%>
- <%- if @hostname != "lully" -%>
-destination loghost-lully {
- tcp("lully.debian.org" port (5140)
- tls( key_file("/etc/ssl/private/thishost.key")
- cert_file("/etc/ssl/debian/certs/thishost.crt")
- ca_dir("/etc/ssl/debian/certs/")
- )
- );
-};
- <%- end -%>
- <%- if @hostname != "loghost-grnet-01" -%>
-destination loghost-loghost-grnet-01 {
- tcp("loghost-grnet-01.debian.org" port (5140)
+<% if @loghosts -%>
+ <% @loghosts.each do |loghost| -%>
+destination loghost-<%= loghost %> {
+ tcp("<%= loghost %>" port (5140)