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')
16 $distid = $::lsbdistid
17 $distcodename = $::lsbdistcodename
20 if $::lsbdistcodename == 'debian' {
22 $distcodename = 'wheezy'
25 $distcodename = $::lsbdistcodename ? {
35 fail('Unable to determine lsbdistid, is lsb-release installed?')
38 fail("Unsupported lsbdistid (${::lsbdistid})")
47 'precise', 'trusty', 'utopic', 'vivid': {