# Stuff common to all debian.org servers
#
class debian-org {
+ if $::lsbmajdistrelease <= 8 {
+ $fallbackmirror = 'http://cdn-fastly.deb.debian.org/debian/'
+ } else {
+ $fallbackmirror = 'http://deb.debian.org/debian/'
+ }
+
if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
- $mirror = getfromhash($site::nodeinfo, 'hoster', 'mirror-debian')
+ $mirror = [ getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'), $fallbackmirror ]
} else {
- #$mirror = 'http://ftp.debian.org/debian/'
- if $::lsbmajdistrelease <= 8 {
- $mirror = 'http://cdn-fastly.deb.debian.org/debian/'
- } else {
- $mirror = 'http://deb.debian.org/debian/'
- }
+ $mirror = [ $fallbackmirror ]
}
if $::lsbmajdistrelease <= 7 {
ensure => absent,
}
}
+
site::aptrepo { 'debian-lts':
ensure => absent,
}
suite => "${::lsbdistcodename}-backports",
components => ['main','contrib','non-free']
}
- site::aptrepo { 'backports2.debian.org':
- url => "http://cdn-fastly.deb.debian.org/debian",
- suite => "${::lsbdistcodename}-backports",
- components => ['main','contrib','non-free']
- }
site::aptrepo { 'volatile':
url => $mirror,
}
}
- site::aptrepo { 'debian.org':
- ensure => absent,
- }
-
site::aptrepo { 'db.debian.org':
url => 'http://db.debian.org/debian-admin',
suite => 'debian-all',
components => ['main','contrib','non-free']
}
}
+
site::aptrepo { 'debian-cdn':
ensure => absent,
}
-
+ site::aptrepo { 'debian.org':
+ ensure => absent,
+ }
site::aptrepo { 'debian2':
url => "http://cdn-fastly.deb.debian.org/debian",
- suite => $mungedcodename,
- components => ['main','contrib','non-free']
+ ensure => absent,
}
+ site::aptrepo { 'backports2.debian.org':
+ ensure => absent,
+ }
+
+
+
file { '/etc/facter':
ensure => directory,