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',
54 'sources.list' => false,
55 'sources.list.d' => false,
56 'preferences' => false,
57 'preferences.d' => false,
60 $source_key_defaults = {
61 'server' => $keyserver,
72 case $facts['os']['name']{
74 case $facts['os']['release']['full'] {
77 'location' => 'http://httpredir.debian.org/debian-backports',
78 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
79 'repos' => 'main contrib non-free',
84 'location' => 'http://httpredir.debian.org/debian',
85 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
86 'repos' => 'main contrib non-free',
97 'location' => 'http://archive.ubuntu.com/ubuntu',
98 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
99 'repos' => 'main universe multiverse restricted',
102 case $facts['os']['release']['full'] {
105 $ppa_package = 'python-software-properties'
109 $ppa_package = 'python-software-properties'
111 '14.04', '14.10', '15.04', '15.10': {
113 $ppa_package = 'software-properties-common'
117 $ppa_package = 'python-software-properties'
122 fail('Unable to determine value for fact os["name"]')