From 9c62ba724859de678c8311ef8e5f9ef975b173f4 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 2 May 2013 19:17:14 +0200 Subject: [PATCH] update backports repo config --- modules/debian-org/manifests/init.pp | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index efe91dbc..9feb912f 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -1,4 +1,14 @@ class debian-org { + if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') { + $mirror = getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') + } else { + $mirror = 'http://http.debian.net/debian/' + } + if $::lsbmajdistrelease < 7 { + $mirror_backports = 'http://backports.debian.org/debian-backports/' + } else { + $mirror_backports = $mirror + } $debianadmin = [ 'debian-archive-debian-samhain-reports@master.debian.org', @@ -90,26 +100,10 @@ class debian-org { components => ['main','contrib','non-free'] } - if $::lsbdistcodename != 'wheezy' { - site::aptrepo { 'backports.debian.org': - url => 'http://backports.debian.org/debian-backports/', - suite => "${::lsbdistcodename}-backports", - components => ['main','contrib','non-free'] - } - - if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') { - site::aptrepo { 'volatile': - url => getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'), - suite => "${::lsbdistcodename}-updates", - components => ['main','contrib','non-free'] - } - } else { - site::aptrepo { 'volatile': - url => 'http://ftp.debian.org/debian', - suite => "${::lsbdistcodename}-updates", - components => ['main','contrib','non-free'] - } - } + site::aptrepo { 'backports.debian.org': + url => $mirror_backports + suite => "${::lsbdistcodename}-backports", + components => ['main','contrib','non-free'] } site::aptrepo { 'backports.org': ensure => absent, @@ -117,6 +111,12 @@ class debian-org { key => 'puppet:///modules/debian-org/backports.org.asc', } + site::aptrepo { 'volatile': + url => $mirror, + suite => "${::lsbdistcodename}-updates", + components => ['main','contrib','non-free'] + } + site::aptrepo { 'debian.org': ensure => absent, } -- 2.39.2