## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
##
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerAdmin debian-admin@debian.org
ServerName debug.mirrors.debian.org
<% if scope.function_onion_global_service_hostname(['debug.mirrors.debian.org']) -%>
## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
##
-<VirtualHost <%= vhost_listen %>>
+<VirtualHost <%= @vhost_listen %>>
ServerAdmin debian-admin@debian.org
ServerName ftp.debian.org
ServerAlias debian.anycast-test.mirrors.debian.org
ServerAlias *.debian.backend.mirrors.debian.org
RedirectMatch "^/$" /debian/
- Alias /debian/ <%= archive_root %>/
+ Alias /debian/ <%= @archive_root %>/
ErrorLog /var/log/apache2/ftp.debian.org-error.log
CustomLog /var/log/apache2/ftp.debian.org-access.log privacy
- Use ftp-archive <%= archive_root %>
+ Use ftp-archive <%= @archive_root %>
<IfModule mod_userdir.c>
UserDir disabled
## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
##
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerAdmin debian-admin@debian.org
ServerName ftp.ports.debian.org
<% if scope.function_onion_global_service_hostname(['ftp.ports.debian.org']) -%>
##
# Need to turn on negotiation_module
-<Directory <%= wwwdo_document_root %>/>
+<Directory <%= @wwwdo_document_root %>/>
Options +MultiViews +FollowSymLinks +Indexes
AddHandler type-map var
# Make sure that the srm.conf directive is commented out.
ServerAlias www.debian.de
ServerAlias newwww.deb.at
- DocumentRoot <%= wwwdo_document_root %>/
+ DocumentRoot <%= @wwwdo_document_root %>/
LogFormat "0.0.0.0 - %u %{[%d/%b/%Y:00:00:00 %z]}t \"%r\" %>s %b \"%{Referer}i\" \"-\" %V" privacy+host
ErrorLog /var/log/apache2/www-other.debian.org-error.log
CustomLog /var/log/apache2/www-other.debian.org-access.log privacy+host
ServerAlias <%= scope.function_onion_global_service_hostname(['www.debian.org']) %>
<% end %>
- DocumentRoot <%= wwwdo_document_root %>/
+ DocumentRoot <%= @wwwdo_document_root %>/
# CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
# document that was negotiated on the basis of content. This asks proxy
RewriteRule ^/devel/debian-volatile/.* /volatile/ [R=301]
# Offer a Redirect to DSA without knowing year #474730
- RewriteMap dsa txt:<%= wwwdo_document_root %>/security/map-dsa.txt
+ RewriteMap dsa txt:<%= @wwwdo_document_root %>/security/map-dsa.txt
RewriteRule ^/security/dsa-(\d+)(\..*)? /security/${dsa:$1}$2 [R=301]
# Compatibility after SGML -> DocBook
# Debian Reference #624239
- RewriteMap reference txt:<%= wwwdo_document_root %>/doc/map-reference.txt
+ RewriteMap reference txt:<%= @wwwdo_document_root %>/doc/map-reference.txt
RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/ch-support$1 !-f
RewriteRule ^/doc/manuals/debian-reference/ch-support(.*) /support$1 [L,R=301]
RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/${reference:$1}$2 -f
</Macro>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ErrorLog /var/log/apache2/www.debian.org-error.log
CustomLog /var/log/apache2/www.debian.org-access.log privacy
Use common-www.d.o
</VirtualHost>
-<VirtualHost <%= vhost_listen_443 %> >
+<VirtualHost <%= @vhost_listen_443 %> >
ErrorLog /var/log/apache2/www.debian.org-error.log
CustomLog /var/log/apache2/www.debian.org-access.log privacyssl
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
Use common-www-other.d.o
ErrorLog /var/log/apache2/www-other.debian.org-error.log
Redirect permanent / http://www.debian.org/
</VirtualHost>
-<VirtualHost <%= vhost_listen_443 %> >
+<VirtualHost <%= @vhost_listen_443 %> >
Use common-www-other.d.o
CustomLog /var/log/apache2/www-other-access.log privacyssl
# puppet maintained
<Macro common-dsa-vhost-https-redirect $name>
- <VirtualHost <%= vhost_listen %> >
+ <VirtualHost <%= @vhost_listen %> >
ServerName $name
ServerAdmin debian-admin@lists.debian.org
Require all granted
</Directory>
- Header set Surrogate-Key <%= hostname %>
+ Header set Surrogate-Key <%= @hostname %>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
</Macro>
<Macro static-vhost-plain-$name>
- <VirtualHost <%= vhost_listen %>>
+ <VirtualHost <%= @vhost_listen %>>
ServerName $name
ErrorLog /var/log/apache2/$name-error.log
</Macro>
<Macro static-vhost-onion-$name $onion>
- <VirtualHost <%= vhost_listen %>>
+ <VirtualHost <%= @vhost_listen %>>
ServerName $onion
ErrorLog /var/log/apache2/$name-error.log
</Macro>
<Macro static-vhost-ssl-$name>
- <VirtualHost <%= vhost_listen_443 %>>
+ <VirtualHost <%= @vhost_listen_443 %>>
ServerName $name
ErrorLog /var/log/apache2/$name-error.log
<% if scope.function_has_static_component(['planet.debian.org']) -%>
-<Virtualhost <%= vhost_listen %> >
+<Virtualhost <%= @vhost_listen %> >
ServerName planet.debian.org
ServerAlias planet.debian.net planeta.debian.net planet-backend.debian.org planet-fastly.debian.org planet-maxcdn.debian.org
<% if scope.function_onion_global_service_hostname(['planet.debian.org']) -%>
Redirect /debian-security/ http://cdn-fastly.deb.debian.org/debian-security/
</Macro>
-<VirtualHost <%= vhost_listen_443 %> >
+<VirtualHost <%= @vhost_listen_443 %> >
ServerName deb.debian.org
ErrorLog /var/log/apache2/deb.debian.org-error.log
Require all granted
</Directory>
- Header set Surrogate-Key <%= hostname %>
+ Header set Surrogate-Key <%= @hostname %>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
# www.backports.org is the historical place for the backports
# website and archive. It is now a CNAME to backports.debian.org:
# redirect http requests.
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName www.backports.org
ServerAlias lists.backports.org
ServerAdmin debian-admin@debian.org
</VirtualHost>
######################
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName www.debian-ports.org
ServerAlias debian-ports.org
ServerAdmin debian-admin@debian.org
RedirectPermanent / https://www.ports.debian.org/
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName ports.debian.org
ServerAlias ports.debian.net
ServerAdmin debian-admin@debian.org
RedirectPermanent / https://www.ports.debian.org/
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName incoming.debian-ports.org
ServerAdmin debian-admin@debian.org
RedirectPermanent / http://incoming.ports.debian.org/
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName ftp.debian-ports.org
ServerAdmin debian-admin@debian.org
RedirectPermanent /archive http://www.ports.debian.org
RedirectPermanent / http://ftp.ports.debian.org/
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName video.debian.net
ServerAdmin debian-admin@debian.org
Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
# historical sites
##################
# now only redirects remain
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName women.debian.org
ServerAdmin debian-admin@debian.org
RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName volatile.debian.org
ServerAlias volatile-master.debian.org
ServerAdmin debian-admin@debian.org
RedirectPermanent / http://www.debian.org/volatile/
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName ftp-master.metadata.debian.org
ServerAdmin debian-admin@debian.org
RedirectPermanent / http://metadata.ftp-master.debian.org/
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName backports-master.debian.org
ServerAdmin debian-admin@debian.org
RedirectPermanent / https://backports.debian.org/
</VirtualHost>
-<VirtualHost <%= vhost_listen %> >
+<VirtualHost <%= @vhost_listen %> >
ServerName manpages.debian.net
ServerAdmin debian-admin@debian.org
Redirect / https://manpages.debian.org/
[debian]
path = /srv/mirrors/debian/
-<%- unless has_variable?("has_srv_mirrors_debian") && has_srv_mirrors_debian -%>
+<%- unless has_variable?("has_srv_mirrors_debian") && @has_srv_mirrors_debian -%>
list = no
<%- end -%>
comment = Debian archive (contact mirrors@debian.org for access; see https://www.debian.org/mirror/size for size)
[debian-debug]
path = /srv/mirrors/debian-debug/
-<%- unless has_variable?("has_srv_mirrors_debian_debug") && has_srv_mirrors_debian_debug -%>
+<%- unless has_variable?("has_srv_mirrors_debian_debug") && @has_srv_mirrors_debian_debug -%>
list = no
<%- end -%>
comment = Debug packages for Debian archive (contact mirrors@debian.org for access)
[debian-ports]
path = /srv/mirrors/debian-ports/
-<%- unless has_variable?("has_srv_mirrors_debian_debug") && has_srv_mirrors_debian_debug -%>
+<%- unless has_variable?("has_srv_mirrors_debian_debug") && @has_srv_mirrors_debian_debug -%>
list = no
<%- end -%>
comment = Debian ports archive (contact mirrors@debian.org for access)
[debian-security]
path = /srv/mirrors/debian-security/
-<%- unless has_variable?("has_srv_mirrors_debian_security") && has_srv_mirrors_debian_security -%>
+<%- unless has_variable?("has_srv_mirrors_debian_security") && @has_srv_mirrors_debian_security -%>
list = no
<%- end -%>
comment = Debian security archive (contact mirrors@debian.org for access)
##
<%
- vhost_listen = [ (bind != '') ? "#{bind}" : "*", (bind6 != '') ? "#{bind6}" : "*"].uniq
- vhost_listen_443 = [ (bind != '') ? "#{bind}:443" : "*:443", (bind6 != '') ? "[#{bind6}]:443" : "*:443"].uniq
+ vhost_listen = [ (@bind != '') ? "#{@bind}" : "*", (@bind6 != '') ? "#{@bind6}" : "*"].uniq
+ vhost_listen_443 = [ (@bind != '') ? "#{@bind}:443" : "*:443", (@bind6 != '') ? "[#{@bind6}]:443" : "*:443"].uniq
%>
<%=
lines = []
vhost_listen.each do |bind|
- lines << "Use common-debian-service-https-redirect \"#{bind}\" \"#{syncproxy_name}\""
+ lines << "Use common-debian-service-https-redirect \"#{bind}\" \"#{@syncproxy_name}\""
end
lines.join("\n")
%>
<Virtualhost <%= vhost_listen_443.join(' ') %> >
- ServerName <%= syncproxy_name %>
+ ServerName <%= @syncproxy_name %>
DocumentRoot /srv/www/syncproxy.debian.org/htdocs
- Use common-debian-service-ssl <%= syncproxy_name %>
+ Use common-debian-service-ssl <%= @syncproxy_name %>
Use common-ssl-HSTS
- Use http-pkp-<%= syncproxy_name %>
+ Use http-pkp-<%= @syncproxy_name %>
<Directory /srv/www/syncproxy.debian.org/htdocs>
Require all granted
lines = []
%w{debian debian-debug debian-ports debian-security}.each do |archive|
varname = 'has_srv_mirrors_' + archive.gsub(/[\/-]/,'_')
- if has_variable?(varname) and (eval(varname))
+ if has_variable?(varname) and (eval("@"+varname))
lines << " Alias /#{archive}/project/trace/ /srv/mirrors/#{archive}/project/trace/"
lines << " <Directory /srv/mirrors/#{archive}/project/trace/>"
lines << " Require all granted"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
- <TITLE>Welcome to <%= syncproxy_name %>!</TITLE>
+ <TITLE>Welcome to <%= @syncproxy_name %>!</TITLE>
</HEAD>
<BODY>
-<H1>Welcome to <%= syncproxy_name %>!</H1>
+<H1>Welcome to <%= @syncproxy_name %>!</H1>
-This is <%= syncproxy_name %>, a syncproxy run by and for the <a
+This is <%= @syncproxy_name %>, a syncproxy run by and for the <a
href="https://www.debian.org/">Debian Project</a> to aid in mirroring
our software. Consult <a href="https://www.debian.org/mirror/">the
mirrors section of the Debian website</a> for more information.
lines = []
%w{debian debian-debug debian-ports debian-security}.each do |archive|
varname = 'has_srv_mirrors_' + archive.gsub(/[\/-]/,'_')
- if has_variable?(varname) and (eval(varname))
+ if has_variable?(varname) and (eval("@"+varname))
lines << "<li>#{archive} [<a href=\"/#{archive}/project/trace/\">trace directory</a>]</li>"
end
end
-cert = /etc/ssl/debian/certs/<%= sslname %>.crt-chained
-key = /etc/ssl/private/<%= sslname %>.key
+cert = /etc/ssl/debian/certs/<%= @sslname %>.crt-chained
+key = /etc/ssl/private/<%= @sslname %>.key
debug = notice
socket = a:SO_KEEPALIVE=1
exec = /usr/bin/rsync
-execargs = rsync --daemon --config=/etc/rsyncd-<%= name %>.conf
+execargs = rsync --daemon --config=/etc/rsyncd-<%= @name %>.conf