3 if $::osfamily != 'Debian' {
4 fail('This module only works on Debian or derivatives like Ubuntu')
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'
31 'path' => $preferences_d,
35 'path' => $sources_list_d,
41 'frequency' => 'reluctantly',
55 'sources.list' => false,
56 'sources.list.d' => false,
57 'preferences' => false,
58 'preferences.d' => false,
61 $source_key_defaults = {
62 'server' => $keyserver,
73 case $facts['os']['name']{
75 case $facts['os']['release']['full'] {
78 'location' => 'http://httpredir.debian.org/debian-backports',
79 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
80 'repos' => 'main contrib non-free',
85 'location' => 'http://httpredir.debian.org/debian',
86 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
87 'repos' => 'main contrib non-free',
98 'location' => 'http://archive.ubuntu.com/ubuntu',
99 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
100 'repos' => 'main universe multiverse restricted',
103 case $facts['os']['release']['full'] {
106 $ppa_package = 'python-software-properties'
110 $ppa_package = 'python-software-properties'
112 '14.04', '14.10', '15.04', '15.10': {
114 $ppa_package = 'software-properties-common'
118 $ppa_package = 'python-software-properties'
123 fail('Unable to determine value for fact os["name"]')