X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fparams.pp;h=b35bb1c8d91b0a667d2fbb3a2ae986628db86261;hb=f6816c6bb3ec29594c792c1bac05d264c99fcdfd;hp=8e4fa932b17cbe873daef887f9c7df69e1df8b9d;hpb=644ed232a0c402b1020b697a10c612db68a9ffa4;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/params.pp b/manifests/params.pp index 8e4fa93..b35bb1c 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -5,19 +5,38 @@ class apt::params { $apt_conf_d = "${root}/apt.conf.d" $preferences_d = "${root}/preferences.d" - case $lsbdistid { + 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': { + case $::lsbdistcodename { + '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' } } } + default: { + fail("Unsupported osfamily (${::osfamily}) or lsbdistid (${::lsbdistid})") + } } }