ssl for debconf[23]
authorPeter Palfrader <peter@palfrader.org>
Sun, 31 Jan 2016 17:58:06 +0000 (17:58 +0000)
committerPeter Palfrader <peter@palfrader.org>
Sun, 31 Jan 2016 17:58:06 +0000 (17:58 +0000)
modules/roles/manifests/static_mirror.pp
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index 66c88dc..9faab44 100644 (file)
@@ -91,6 +91,8 @@ class roles::static_mirror {
                notify => Service['apache2'],
        }
 
-       ssl::service { 'debconf0.debconf.org': notify => Service['apache2'], key => true, }
-       ssl::service { 'debconf1.debconf.org': notify => Service['apache2'], key => true, }
+       if has_static_component('debconf0.debconf.org') { ssl::service { 'debconf0.debconf.org': notify => Service['apache2'], key => true, } }
+       if has_static_component('debconf1.debconf.org') { ssl::service { 'debconf1.debconf.org': notify => Service['apache2'], key => true, } }
+       if has_static_component('debconf2.debconf.org') { ssl::service { 'debconf2.debconf.org': notify => Service['apache2'], key => true, } }
+       if has_static_component('debconf3.debconf.org') { ssl::service { 'debconf3.debconf.org': notify => Service['apache2'], key => true, } }
 }
index 0cb65ad..d19ebb8 100644 (file)
@@ -34,8 +34,8 @@ vhost(lines, "rtc.debian.org"      , "ssl")
 vhost(lines, "10years.debconf.org")
 vhost(lines, "debconf0.debconf.org", "ssl")
 vhost(lines, "debconf1.debconf.org", "ssl")
-vhost(lines, "debconf2.debconf.org")
-vhost(lines, "debconf3.debconf.org")
+vhost(lines, "debconf2.debconf.org", "ssl")
+vhost(lines, "debconf3.debconf.org", "ssl")
 vhost(lines, "debconf4.debconf.org")
 vhost(lines, "debconf5.debconf.org")
 vhost(lines, "debconf6.debconf.org")