3 $provider = '/usr/bin/apt-get'
4 $sources_list_d = "${root}/sources.list.d"
5 $apt_conf_d = "${root}/apt.conf.d"
6 $preferences_d = "${root}/preferences.d"
8 if $::osfamily != 'Debian' {
9 fail('This module only works on Debian or derivatives like Ubuntu')
14 $distid = $::lsbdistid
15 $distcodename = $::lsbdistcodename
18 if $::lsbdistcodename == 'debian' {
20 $distcodename = 'wheezy'
23 $distcodename = $::lsbdistcodename ? {
33 fail('Unable to determine lsbdistid, is lsb-release installed?')
36 fail("Unsupported lsbdistid (${::lsbdistid})")
44 $origins = ['${distro_id} oldstable', #lint:ignore:single_quote_string_with_variables
45 '${distro_id} ${distro_codename}-security', #lint:ignore:single_quote_string_with_variables
46 '${distro_id} ${distro_codename}-lts'] #lint:ignore:single_quote_string_with_variables
49 $legacy_origin = false
50 $origins = ['origin=Debian,archive=stable,label=Debian-Security',
51 'origin=Debian,archive=oldstable,label=Debian-Security']
54 $legacy_origin = false
55 $origins = ['origin=Debian,archive=stable,label=Debian-Security']
64 $origins = ['${distro_id} ${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables
66 'precise', 'trusty', 'utopic', 'vivid': {
69 $origins = ['${distro_id}:${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables
74 $origins = ['${distro_id}:${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables