3 $provider = '/usr/bin/apt-get'
4 $sources_list = "${root}/sources.list"
5 $sources_list_d = "${root}/sources.list.d"
6 $conf_d = "${root}/apt.conf.d"
7 $preferences = "${root}/preferences"
8 $preferences_d = "${root}/preferences.d"
10 if $::osfamily != 'Debian' {
11 fail('This module only works on Debian or derivatives like Ubuntu')
20 'path' => $preferences_d,
24 'path' => $sources_list_d,
37 $distid = $::lsbdistid
38 $distcodename = $::lsbdistcodename
41 if $::lsbdistcodename == 'debian' {
43 $distcodename = 'wheezy'
46 $distcodename = $::lsbdistcodename ? {
56 fail('Unable to determine lsbdistid, is lsb-release installed?')
59 fail("Unsupported lsbdistid (${::lsbdistid})")
68 'precise', 'trusty', 'utopic', 'vivid': {