Do not install the redirect vhosts on www-staging.d.o
authorPaul Wise <pabs@debian.org>
Wed, 25 Jul 2018 03:40:15 +0000 (11:40 +0800)
committerPaul Wise <pabs@debian.org>
Wed, 25 Jul 2018 03:40:15 +0000 (11:40 +0800)
modules/roles/manifests/static_mirror.pp
modules/roles/manifests/www_master.pp
modules/roles/templates/apache-www.debian.org.erb

index c150637..9291c3d 100644 (file)
@@ -49,6 +49,7 @@ class roles::static_mirror {
                mirror-anu => '150.203.164.62:443 [2001:388:1034:2900::3e]:443',
                default    => '*:443',
        }
+       $redirect_vhosts = true
 
        apache2::config { 'local-static-vhost.conf':
                ensure => absent,
index 4093702..cce0338 100644 (file)
@@ -6,6 +6,7 @@ class roles::www_master {
 
        $vhost_listen = '*:80'
        $vhost_listen_443 = '*:443'
+       $redirect_vhosts = false
        $wwwdo_server_name = 'www-staging.debian.org'
        $wwwdo_document_root = '/srv/www.debian.org/www'
        apache2::site { '005-www-staging.debian.org':
index afcd63d..6ad69d9 100644 (file)
 <% end %>
 
 
+<%- if @redirect_vhosts -%>
 # www other
 ###########
 <VirtualHost <%= @vhost_listen %> >
    Use common-debian-service-ssl debian.org
    Use common-ssl-HSTS
 </VirtualHost>
+<%- end -%>
 # vim:set syn=apache: