fuel-library/deployment/puppet/apt/manifests/params.pp
Alexei Sheplyakov 98a14bf396 Switch to Ubuntu 14.04 LTS
blueprint support-ubuntu-trusty

Change-Id: Ia3bb928e16f89f62fb216bd12fdd8d16ba0beff9
2015-03-04 09:58:14 +03:00

45 lines
1.2 KiB
Puppet

# params.pp
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','maverick','natty','oneiric','precise','trusty': {
$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})")
}
}
}