Merge pull request #44 from relud/patch-1
[puppet-modules/puppetlabs-apt.git] / manifests / params.pp
1 class apt::params {
2   $root           = '/etc/apt'
3   $provider       = '/usr/bin/apt-get'
4   $sources_list_d = "${root}/sources.list.d"
5   $apt_conf_d     = "${root}/apt.conf.d"
6   $preferences_d  = "${root}/preferences.d"
7
8   case $lsbdistid {
9     'debian': {
10       $backports_location = 'http://backports.debian.org/debian-backports'
11     }
12     'ubuntu': {
13       case $lsbdistcodename {
14         'hardy','lucid','maverick','natty','oneiric','precise': {
15           $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
16         }
17         default: {
18           $backports_location = 'http://old-releases.ubuntu.com/ubuntu'
19         }
20       }
21     }
22   }
23 }