X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fparams.pp;h=ae464436dadefdc3a451302ca5819db596f072ca;hb=904fb4a2937932b4e24b526583bd563ee549fb14;hp=ed698e72bed8bba502d2081483e3052b2103d0c6;hpb=17b9ac3c7f0aaf7322eae634fb0f35eb27bf872c;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/params.pp b/manifests/params.pp index ed698e7..ae46443 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -7,15 +7,31 @@ class apt::params { case $::lsbdistid { 'debian': { - $backports_location = 'http://backports.debian.org/debian-backports' + case $::lsbdistcodename { + 'squeeze': { + $backports_location = 'http://backports.debian.org/debian-backports' + } + 'wheezy': { + $backports_location = 'http://ftp.debian.org/debian/' + } + default: { + $backports_location = 'http://http.debian.net/debian/' + } + } } 'ubuntu': { case $::lsbdistcodename { - 'hardy','lucid','maverick','natty','oneiric','precise': { + 'hardy','maverick','natty','oneiric','precise': { + $backports_location = 'http://us.archive.ubuntu.com/ubuntu' + $ppa_options = 'y' + } + 'lucid': { $backports_location = 'http://us.archive.ubuntu.com/ubuntu' + $ppa_options = undef } default: { $backports_location = 'http://old-releases.ubuntu.com/ubuntu' + $ppa_options = 'y' } } }