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'
|
2014-03-27 13:51:08 +01:00
|
|
|
$legacy_origin = true
|
2014-04-02 11:17:04 +02:00
|
|
|
$origins = ['${distro_id} oldstable',
|
2014-06-26 20:03:04 +02:00
|
|
|
'${distro_id} ${distro_codename}-security',
|
|
|
|
'${distro_id} ${distro_codename}-lts']
|
2013-05-07 14:13:59 +02:00
|
|
|
}
|
2013-08-05 13:06:54 +02:00
|
|
|
'wheezy': {
|
|
|
|
$backports_location = 'http://ftp.debian.org/debian/'
|
2014-03-27 13:51:08 +01:00
|
|
|
$legacy_origin = false
|
|
|
|
$origins = ['origin=Debian,archive=stable,label=Debian-Security']
|
2013-08-05 13:06:54 +02:00
|
|
|
}
|
2013-05-07 14:13:59 +02:00
|
|
|
default: {
|
2013-08-05 13:19:50 +02:00
|
|
|
$backports_location = 'http://http.debian.net/debian/'
|
2014-03-27 13:51:08 +01:00
|
|
|
$legacy_origin = false
|
|
|
|
$origins = ['origin=Debian,archive=stable,label=Debian-Security']
|
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-03-27 13:51:08 +01:00
|
|
|
'lucid': {
|
2012-04-12 02:49:30 +02:00
|
|
|
$backports_location = 'http://us.archive.ubuntu.com/ubuntu'
|
2014-03-27 13:51:08 +01:00
|
|
|
$ppa_options = undef
|
|
|
|
$legacy_origin = true
|
|
|
|
$origins = ['${distro_id} ${distro_codename}-security']
|
2014-02-21 01:43:48 +01:00
|
|
|
}
|
2014-03-27 13:51:08 +01:00
|
|
|
'precise', 'trusty': {
|
2014-02-21 01:43:48 +01:00
|
|
|
$backports_location = 'http://us.archive.ubuntu.com/ubuntu'
|
2014-03-27 13:51:08 +01:00
|
|
|
$ppa_options = '-y'
|
|
|
|
$legacy_origin = true
|
|
|
|
$origins = ['${distro_id}:${distro_codename}-security']
|
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-03-27 13:51:08 +01:00
|
|
|
$ppa_options = '-y'
|
|
|
|
$legacy_origin = true
|
|
|
|
$origins = ['${distro_id}:${distro_codename}-security']
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-02-24 22:52:13 +01:00
|
|
|
default: {
|
2014-02-26 11:52:54 +01:00
|
|
|
fail("Unsupported lsbdistid (${::lsbdistid})")
|
2014-02-24 22:52:13 +01:00
|
|
|
}
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
2011-05-30 19:18:13 +02:00
|
|
|
}
|