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,
36 'frequency' => 'reluctantly',
48 'sources.list' => true,
49 'sources.list.d' => true,
50 'preferences' => true,
51 'preferences.d' => true,
54 $source_key_defaults = {
55 'server' => $default_keyserver,
69 $distid = $::lsbdistid
70 $distcodename = $::lsbdistcodename
73 if $::lsbdistcodename == 'debian' {
75 $distcodename = 'wheezy'
78 $distcodename = $::lsbdistcodename ? {
88 fail('Unable to determine lsbdistid, is lsb-release installed?')
91 fail("Unsupported lsbdistid (${::lsbdistid})")
99 $ppa_package = 'python-software-properties'
103 $ppa_package = 'python-software-properties'
105 'trusty', 'utopic', 'vivid': {
107 $ppa_package = 'software-properties-common'
111 $ppa_package = 'software-properties-common'