}
case $xfacts['lsbdistid'] {
- 'ubuntu', 'debian': {
- $distid = $xfacts['lsbdistid']
- $distcodename = $xfacts['lsbdistcodename']
- }
- 'linuxmint': {
- if $xfacts['lsbdistcodename'] == 'debian' {
- $distid = 'debian'
- $distcodename = 'wheezy'
- } else {
- $distid = 'ubuntu'
- $distcodename = $xfacts['lsbdistcodename'] ? {
- 'qiana' => 'trusty',
- 'petra' => 'saucy',
- 'olivia' => 'raring',
- 'nadia' => 'quantal',
- 'maya' => 'precise',
+ 'debian': {
+ case $xfacts['lsbdistcodename'] {
+ 'squeeze': {
+ $backports = {
+ 'location' => 'http://backports.debian.org/debian-backports',
+ 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
+ 'repos' => 'main contrib non-free',
+ }
+ }
+ default: {
+ $backports = {
+ 'location' => 'http://ftp.debian.org/debian/',
+ 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
+ 'repos' => 'main contrib non-free',
+ }
}
}
}
- 'Cumulus Networks': {
- $distid = 'debian'
- $distcodename = $::lsbdistcodename
- }
- undef: {
- fail('Unable to determine lsbdistid, is lsb-release installed?')
- }
- default: {
- fail("Unsupported lsbdistid (${::lsbdistid})")
- }
- }
- case $distid {
'ubuntu': {
- case $distcodename {
+ $backports = {
+ 'location' => 'http://archive.ubuntu.com/ubuntu',
+ 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
+ 'repos' => 'main universe multiverse restricted',
+ }
+
+ case $xfacts['lsbdistcodename'] {
'lucid': {
$ppa_options = undef
$ppa_package = 'python-software-properties'
}
}
}
- '', default: {
+ undef: {
+ fail('Unable to determine lsbdistid, is lsb-release installed?')
+ }
+ default: {
$ppa_options = undef
$ppa_package = undef
+ $backports = undef
}
}
}