X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fparams.pp;h=955954fe89f65ea1e9e00f7aaaaf9fe5a5a610c5;hb=d1e87d477466455220daff8fe36ea1516591fd67;hp=ca5d65521d22b915c96e09430b33a2c06ffb8ef2;hpb=9f570782aa9706c03750cd06dcb500a9a04700e2;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/params.pp b/manifests/params.pp index ca5d655..955954f 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -2,4 +2,32 @@ class apt::params { $root = '/etc/apt' $provider = '/usr/bin/apt-get' $sources_list_d = "${root}/sources.list.d" + $apt_conf_d = "${root}/apt.conf.d" + $preferences_d = "${root}/preferences.d" + + case $::lsbdistid { + 'debian': { + 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': { + $backports_location = 'http://us.archive.ubuntu.com/ubuntu' + } + default: { + $backports_location = 'http://old-releases.ubuntu.com/ubuntu' + } + } + } + } }