From: Peter Palfrader Date: Sat, 6 Feb 2016 15:38:31 +0000 (+0100) Subject: static: only install apache::site instances relevant for this mirror X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7dd726342b257939104e145595ad1780f27a3650;p=mirror%2Fdsa-puppet.git static: only install apache::site instances relevant for this mirror --- diff --git a/modules/roles/manifests/static_mirror.pp b/modules/roles/manifests/static_mirror.pp index 91e60c049..86fad94e3 100644 --- a/modules/roles/manifests/static_mirror.pp +++ b/modules/roles/manifests/static_mirror.pp @@ -50,11 +50,13 @@ class roles::static_mirror { apache2::site { '010-planet.debian.org': site => 'planet.debian.org', + ensure => has_static_component('planet.debian.org') ? { true => "present", false => "absent" }, content => template('roles/static-mirroring/vhost/planet.debian.org.erb'), } apache2::site { '010-lintian.debian.org': site => 'lintian.debian.org', + ensure => has_static_component('lintian.debian.org') ? { true => "present", false => "absent" }, content => template('roles/static-mirroring/vhost/lintian.debian.org.erb'), } @@ -66,6 +68,7 @@ class roles::static_mirror { $wwwdo_document_root = '/srv/static.debian.org/mirrors/www.debian.org/cur' apache2::site { '005-www.debian.org': site => 'www.debian.org', + ensure => has_static_component('www.debian.org') ? { true => "present", false => "absent" }, content => template('roles/apache-www.debian.org.erb'), }