projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a secondary source for main debian packages
[mirror/dsa-puppet.git]
/
modules
/
debian-org
/
manifests
/
init.pp
diff --git
a/modules/debian-org/manifests/init.pp
b/modules/debian-org/manifests/init.pp
index
10c8c4a
..
c7e0db0
100644
(file)
--- a/
modules/debian-org/manifests/init.pp
+++ b/
modules/debian-org/manifests/init.pp
@@
-6,12
+6,12
@@
class debian-org {
if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
$mirror = getfromhash($site::nodeinfo, 'hoster', 'mirror-debian')
} else {
if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
$mirror = getfromhash($site::nodeinfo, 'hoster', 'mirror-debian')
} else {
- $mirror = 'http://ftp.debian.org/debian/'
- }
- if $::lsbmajdistrelease < 7 {
- $mirror_backports = 'http://backports.debian.org/debian-backports/'
- } else {
- $mirror_backports = $mirror
+
#
$mirror = 'http://ftp.debian.org/debian/'
+ if $::lsbmajdistrelease <= 8 {
+ $mirror = 'http://cdn-fastly.deb.debian.org/debian/'
+ } else {
+ $mirror = 'http://deb.debian.org/debian/'
+ }
}
if $::lsbmajdistrelease <= 7 {
}
if $::lsbmajdistrelease <= 7 {
@@
-63,10
+63,8
@@
class debian-org {
if ($::lsbmajdistrelease >= 8) {
$rubyfs_package = 'ruby-filesystem'
if ($::lsbmajdistrelease >= 8) {
$rubyfs_package = 'ruby-filesystem'
- } elsif $::lsbmajdistrelease == 7 {
- $rubyfs_package = 'libfilesystem-ruby1.9'
} else {
} else {
- $rubyfs_package = 'libfilesystem-ruby1.
8
'
+ $rubyfs_package = 'libfilesystem-ruby1.
9
'
}
package { [
'apt-utils',
}
package { [
'apt-utils',
@@
-138,20
+136,12
@@
class debian-org {
suite => "${mungedcodename}/updates",
components => ['main','contrib','non-free']
}
suite => "${mungedcodename}/updates",
components => ['main','contrib','non-free']
}
- if $::lsbmajdistrelease < 7 {
- site::aptrepo { 'debian-lts':
- url => $mirror,
- suite => "${::lsbdistcodename}-lts",
- components => ['main','contrib','non-free']
- }
- } else {
- site::aptrepo { 'debian-lts':
- ensure => absent,
- }
+ site::aptrepo { 'debian-lts':
+ ensure => absent,
}
site::aptrepo { 'backports.debian.org':
}
site::aptrepo { 'backports.debian.org':
- url => $mirror
_backports
,
+ url => $mirror,
suite => "${::lsbdistcodename}-backports",
components => ['main','contrib','non-free']
}
suite => "${::lsbdistcodename}-backports",
components => ['main','contrib','non-free']
}
@@
-162,10
+152,10
@@
class debian-org {
components => ['main','contrib','non-free']
}
components => ['main','contrib','non-free']
}
- if ($::hostname in [
mips-aql-05, mipsel-aql-01, mipsel-aql-02, mipsel-manda-02, eberlin, etler
]) {
+ if ($::hostname in [
] or $::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386'
]) {
site::aptrepo { 'proposed-updates':
url => $mirror,
site::aptrepo { 'proposed-updates':
url => $mirror,
- suite => "${
::lsbdist
codename}-proposed-updates",
+ suite => "${
munged
codename}-proposed-updates",
components => ['main','contrib','non-free']
}
} else {
components => ['main','contrib','non-free']
}
} else {
@@
-207,6
+197,11
@@
class debian-org {
components => ['main','contrib','non-free']
}
}
components => ['main','contrib','non-free']
}
}
+ site::aptrepo { 'debian-cdn':
+ url => "http://cdn-fastly.deb.debian.org/debian"
+ suite => $mungedcodename,
+ components => ['main','contrib','non-free']
+ }
file { '/etc/facter':
ensure => directory,
file { '/etc/facter':
ensure => directory,