3 if $caller_module_name and $caller_module_name != $module_name {
4 fail('apt::params is a private class and cannot be accessed directly')
8 $provider = '/usr/bin/apt-get'
9 $sources_list = "${root}/sources.list"
10 $sources_list_d = "${root}/sources.list.d"
11 $conf_d = "${root}/apt.conf.d"
12 $preferences = "${root}/preferences"
13 $preferences_d = "${root}/preferences.d"
15 if $::osfamily != 'Debian' {
16 fail('This module only works on Debian or derivatives like Ubuntu')
25 'path' => $preferences_d,
29 'path' => $sources_list_d,
47 $distid = $::lsbdistid
48 $distcodename = $::lsbdistcodename
51 if $::lsbdistcodename == 'debian' {
53 $distcodename = 'wheezy'
56 $distcodename = $::lsbdistcodename ? {
66 fail('Unable to determine lsbdistid, is lsb-release installed?')
69 fail("Unsupported lsbdistid (${::lsbdistid})")
77 $ppa_package = 'python-software-properties'
81 $ppa_package = 'python-software-properties'
83 'trusty', 'utopic', 'vivid': {
85 $ppa_package = 'software-properties-common'
89 $ppa_package = 'software-properties-common'