ports_mirror_onion:
- klecker.debian.org
- mirror-isc.debian.org
+ planet_master:
+ - philp.debian.org
planet_search:
- philp.debian.org
i18n.d.o:
--- /dev/null
+Use common-debian-service-https-redirect * planet-master.debian.org
+<VirtualHost *:443>
+ ServerName planet-master.debian.org
+ ServerAdmin debian-admin@lists.debian.org
+
+ Use common-debian-service-ssl planet-master.debian.org
+ Use common-ssl-HSTS
+
+ <IfModule mod_userdir.c>
+ UserDir disabled
+ </IfModule>
+ ErrorLog ${APACHE_LOG_DIR}/planet-master.debian.org-error.log
+ CustomLog ${APACHE_LOG_DIR}/planet-master.debian.org-access.log privacy
+ ServerSignature On
+
+ DocumentRoot /srv/planet.debian.org/www
+ <Directory /srv/planet.debian.org/www>
+ Use DebianHostList
+ </Directory>
+</VirtualHost>
include roles::debtags
}
+ if has_role('planet_master') {
+ include roles::planet_master
+ }
if has_role('planet_search') {
ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
}
--- /dev/null
+class roles::planet_master {
+ include apache2::ssl
+ apache2::config { 'puppet-debianhosts':
+ content => template('roles/conf-debianhostlist.erb'),
+ }
+ apache2::site { 'planet-master.debian.org':
+ source => 'puppet:///modules/roles/planet_master/planet-master.debian.org',
+ }
+ ssl::service { 'planet-master.debian.org':
+ notify => Exec['service apache2 reload'],
+ key => true,
+ }
+}
--- /dev/null
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+<Macro DebianHostList>
+
+<%=
+ lines = []
+
+ scope.lookupvar('site::allnodeinfo').keys.sort.each do |node|
+ lines << " # #{scope.lookupvar('site::allnodeinfo')[node]['hostname'][0]}"
+ scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].each do |addr|
+ lines << " Require ip #{addr}"
+ end
+ end
+ lines.join("\n")
+# vim:set et:
+# vim:set sts=2 ts=2:
+# vim:set shiftwidth=2:
+%>
+</Macro>