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"
14 $keyserver = 'keyserver.ubuntu.com'
16 if $::osfamily != 'Debian' {
17 fail('This module only works on Debian or derivatives like Ubuntu')
26 'path' => $preferences_d,
30 'path' => $sources_list_d,
37 'frequency' => 'reluctantly',
49 'sources.list' => true,
50 'sources.list.d' => true,
51 'preferences' => true,
52 'preferences.d' => true,
55 $source_key_defaults = {
56 'server' => $keyserver,
70 $distid = $::lsbdistid
71 $distcodename = $::lsbdistcodename
74 if $::lsbdistcodename == 'debian' {
76 $distcodename = 'wheezy'
79 $distcodename = $::lsbdistcodename ? {
89 fail('Unable to determine lsbdistid, is lsb-release installed?')
92 fail("Unsupported lsbdistid (${::lsbdistid})")
100 $ppa_package = 'python-software-properties'
104 $ppa_package = 'python-software-properties'
106 'trusty', 'utopic', 'vivid': {
108 $ppa_package = 'software-properties-common'
112 $ppa_package = 'software-properties-common'