Skip to content

Commit

Permalink
Merge pull request #545 from raoulbhatia/master
Browse files Browse the repository at this point in the history
Use Debian's new official mirrors redirector
  • Loading branch information
daenney committed Jul 23, 2015
2 parents fa86d8e + b8462bd commit 2cf0895
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ Manages backports.

* `location`: Specifies an Apt repository containing the backports to manage. Valid options: a string containing a URL. Defaults:

* Debian (squeeze): 'http://backports.debian.org/debian-backports'
* Debian (other): 'http://ftp.debian.org/debian/'
* Debian (squeeze): 'http://httpredir.debian.org/debian-backports'
* Debian (other): 'http://httpredir.debian.org/debian'
* Ubuntu: 'http://archive.ubuntu.com/ubuntu'

* `pin`: *Optional.* Specifies a pin priority for the backports. Valid options: a number or string to be passed to the `id` parameter of the `apt::pin` define, or a hash of `parameter => value` pairs to be passed to `apt::pin`'s corresponding parameters. Default: '200'.
Expand Down
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@
case $xfacts['lsbdistcodename'] {
'squeeze': {
$backports = {
'location' => 'http://backports.debian.org/debian-backports',
'location' => 'http://httpredir.debian.org/debian-backports',
'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
'repos' => 'main contrib non-free',
}
}
default: {
$backports = {
'location' => 'http://ftp.debian.org/debian/',
'location' => 'http://httpredir.debian.org/debian',
'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
'repos' => 'main contrib non-free',
}
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/apt_backports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
end
it { is_expected.to contain_apt__source('backports').with({
:location => 'http://ftp.debian.org/debian/',
:location => 'http://httpredir.debian.org/debian',
:key => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
:repos => 'main contrib non-free',
:release => 'wheezy-backports',
Expand All @@ -32,7 +32,7 @@
}
end
it { is_expected.to contain_apt__source('backports').with({
:location => 'http://backports.debian.org/debian-backports',
:location => 'http://httpredir.debian.org/debian-backports',
:key => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
:repos => 'main contrib non-free',
:release => 'squeeze-backports',
Expand Down

0 comments on commit 2cf0895

Please sign in to comment.