From 0db7f7a2e34d1a51d981579de12754814f6768c6 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Wed, 19 Apr 2017 00:13:45 +0200 Subject: [PATCH] Disable the security repository for smetana Signed-off-by: Aurelien Jarno --- modules/debian_org/manifests/apt.pp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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') { -- 2.20.1