From: Julien Cristau Date: Fri, 29 Apr 2016 15:08:05 +0000 (+0200) Subject: Disable security.d.o repo for wheezy hosts X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=610f4d7320523bd97804e5937475396eb9665ac7;p=mirror%2Fdsa-puppet.git Disable security.d.o repo for wheezy hosts It's been repurposed for LTS, which doesn't carry ia64/sparc. Signed-off-by: Julien Cristau --- diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index 2ea9e150a..c2080884c 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -131,10 +131,16 @@ class debian-org { content => "", } - site::aptrepo { 'security': - url => 'http://security-cdn.debian.org/', - suite => "${mungedcodename}/updates", - components => ['main','contrib','non-free'] + if ($::lsbmajdistrelease >= 8) { + site::aptrepo { 'security': + url => 'http://security-cdn.debian.org/', + suite => "${mungedcodename}/updates", + components => ['main','contrib','non-free'] + } + } else { + site::aptrepo { 'security': + ensure => absent, + } } site::aptrepo { 'debian-lts': ensure => absent,