From: Aurelien Jarno Date: Tue, 18 Apr 2017 22:13:45 +0000 (+0200) Subject: Disable the security repository for smetana X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=0db7f7a2e34d1a51d981579de12754814f6768c6;p=mirror%2Fdsa-puppet.git Disable the security repository for smetana Signed-off-by: Aurelien Jarno --- diff --git a/modules/debian_org/manifests/apt.pp b/modules/debian_org/manifests/apt.pp index 948f606ea..48b617e6e 100644 --- a/modules/debian_org/manifests/apt.pp +++ b/modules/debian_org/manifests/apt.pp @@ -28,10 +28,17 @@ class debian_org::apt { suite => [ $mungedcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ], components => ['main','contrib','non-free'] } - site::aptrepo { 'security': - url => [ 'http://security-cdn.debian.org/', 'http://security.anycast-test.mirrors.debian.org/debian-security/', 'http://security.debian.org/' ], - suite => "${mungedcodename}/updates", - components => ['main','contrib','non-free'] + + if ($::hostname in [smetana]) { + site::aptrepo { 'security': + ensure => absent, + } + } else { + site::aptrepo { 'security': + url => [ 'http://security-cdn.debian.org/', 'http://security.anycast-test.mirrors.debian.org/debian-security/', 'http://security.debian.org/' ], + suite => "${mungedcodename}/updates", + components => ['main','contrib','non-free'] + } } if has_role('experimental_apache') {