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})")
43 $backports_location = 'http://backports.debian.org/debian-backports'
45 $origins = ['${distro_id} oldstable', #lint:ignore:single_quote_string_with_variables
46 '${distro_id} ${distro_codename}-security', #lint:ignore:single_quote_string_with_variables
47 '${distro_id} ${distro_codename}-lts'] #lint:ignore:single_quote_string_with_variables
50 $backports_location = 'http://ftp.debian.org/debian/'
51 $legacy_origin = false
52 $origins = ['origin=Debian,archive=stable,label=Debian-Security',
53 'origin=Debian,archive=oldstable,label=Debian-Security']
56 $backports_location = 'http://http.debian.net/debian/'
57 $legacy_origin = false
58 $origins = ['origin=Debian,archive=stable,label=Debian-Security']
65 $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
68 $origins = ['${distro_id} ${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables
70 'precise', 'trusty', 'utopic', 'vivid': {
71 $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
74 $origins = ['${distro_id}:${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables
77 $backports_location = 'http://old-releases.ubuntu.com/ubuntu'
80 $origins = ['${distro_id}:${distro_codename}-security'] #lint:ignore:single_quote_string_with_variables