2011-05-30 19:18:13 +02:00
|
|
|
class apt::params {
|
2012-02-24 23:03:51 +01:00
|
|
|
$root = '/etc/apt'
|
|
|
|
$provider = '/usr/bin/apt-get'
|
|
|
|
$sources_list_d = "${root}/sources.list.d"
|
2012-04-11 23:54:13 +02:00
|
|
|
$apt_conf_d = "${root}/apt.conf.d"
|
|
|
|
$preferences_d = "${root}/preferences.d"
|
|
|
|
|
2012-05-03 18:51:14 +02:00
|
|
|
case $::lsbdistid {
|
2012-04-11 23:54:13 +02:00
|
|
|
'debian': {
|
2013-05-07 14:13:59 +02:00
|
|
|
case $::lsbdistcodename {
|
|
|
|
'squeeze': {
|
|
|
|
$backports_location = 'http://backports.debian.org/debian-backports'
|
|
|
|
}
|
2013-08-05 13:06:54 +02:00
|
|
|
'wheezy': {
|
|
|
|
$backports_location = 'http://ftp.debian.org/debian/'
|
|
|
|
}
|
2013-05-07 14:13:59 +02:00
|
|
|
default: {
|
2013-08-05 13:19:50 +02:00
|
|
|
$backports_location = 'http://http.debian.net/debian/'
|
2013-05-07 14:13:59 +02:00
|
|
|
}
|
|
|
|
}
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
|
|
|
'ubuntu': {
|
2012-05-03 18:51:14 +02:00
|
|
|
case $::lsbdistcodename {
|
2014-02-21 01:43:48 +01:00
|
|
|
'hardy','maverick','natty','oneiric','precise': {
|
2012-04-12 02:49:30 +02:00
|
|
|
$backports_location = 'http://us.archive.ubuntu.com/ubuntu'
|
2014-02-21 18:34:46 +01:00
|
|
|
$ppa_options = '-y'
|
2014-02-21 01:43:48 +01:00
|
|
|
}
|
|
|
|
'lucid': {
|
|
|
|
$backports_location = 'http://us.archive.ubuntu.com/ubuntu'
|
|
|
|
$ppa_options = undef
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
|
|
|
default: {
|
2012-04-12 02:49:30 +02:00
|
|
|
$backports_location = 'http://old-releases.ubuntu.com/ubuntu'
|
2014-02-21 18:34:46 +01:00
|
|
|
$ppa_options = '-y'
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-05-30 19:18:13 +02:00
|
|
|
}
|