From f9d91d53528b62671c3ddaeb6f57b2eb4b713010 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 6 Feb 2016 16:32:16 +0100 Subject: [PATCH] static: only install ssl::service instances relevant for this mirror --- modules/roles/manifests/static_mirror.pp | 28 ++++++------------------ 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/modules/roles/manifests/static_mirror.pp b/modules/roles/manifests/static_mirror.pp index ef54d3414..91e60c049 100644 --- a/modules/roles/manifests/static_mirror.pp +++ b/modules/roles/manifests/static_mirror.pp @@ -69,27 +69,13 @@ class roles::static_mirror { content => template('roles/apache-www.debian.org.erb'), } - ssl::service { 'dsa.debian.org': - notify => Service['apache2'], - } - ssl::service { 'www.debian.org': - notify => Service['apache2'], - } - ssl::service { 'bits.debian.org': - notify => Service['apache2'], - } - ssl::service { 'lintian.debian.org': - notify => Service['apache2'], - } - ssl::service { 'rtc.debian.org': - notify => Service['apache2'], - } - ssl::service { 'appstream.debian.org': - notify => Service['apache2'], - } - ssl::service { 'd-i.debian.org': - notify => Service['apache2'], - } + if has_static_component('dsa.debian.org' ) { ssl::service { 'dsa.debian.org' : notify => Service['apache2'], } } + if has_static_component('www.debian.org' ) { ssl::service { 'www.debian.org' : notify => Service['apache2'], } } + if has_static_component('bits.debian.org' ) { ssl::service { 'bits.debian.org' : notify => Service['apache2'], } } + if has_static_component('lintian.debian.org' ) { ssl::service { 'lintian.debian.org' : notify => Service['apache2'], } } + if has_static_component('rtc.debian.org' ) { ssl::service { 'rtc.debian.org' : notify => Service['apache2'], } } + if has_static_component('appstream.debian.org' ) { ssl::service { 'appstream.debian.org': notify => Service['apache2'], } } + if has_static_component('d-i.debian.org' ) { ssl::service { 'd-i.debian.org' : notify => Service['apache2'], } } if has_static_component('news.debian.net' ) { ssl::service { 'news.debian.net' : notify => Service['apache2'], key => true, } } if has_static_component('debaday.debian.net' ) { ssl::service { 'debaday.debian.net' : notify => Service['apache2'], key => true, } } -- 2.20.1