1 # Setting params for the module
4 if $::osfamily != 'Debian' {
5 fail('This module only works on Debian or derivatives like Ubuntu')
9 $provider = '/usr/bin/apt-get'
10 $sources_list = "${root}/sources.list"
11 $sources_list_d = "${root}/sources.list.d"
12 $conf_d = "${root}/apt.conf.d"
13 $preferences = "${root}/preferences"
14 $preferences_d = "${root}/preferences.d"
15 $keyserver = 'keyserver.ubuntu.com'
32 'path' => $preferences_d,
36 'path' => $sources_list_d,
42 'frequency' => 'reluctantly',
57 'sources.list' => false,
58 'sources.list.d' => false,
59 'preferences' => false,
60 'preferences.d' => false,
63 $source_key_defaults = {
64 'server' => $keyserver,
75 case $facts['os']['name']{
77 case $facts['os']['release']['full'] {
80 'location' => 'http://deb.debian.org/debian',
81 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
82 'repos' => 'main contrib non-free',
93 'location' => 'http://archive.ubuntu.com/ubuntu',
94 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
95 'repos' => 'main universe multiverse restricted',
98 case $facts['os']['release']['full'] {
101 $ppa_package = 'python-software-properties'
105 $ppa_package = 'python-software-properties'
107 '14.04', '14.10', '15.04', '15.10', '16.04': {
109 $ppa_package = 'software-properties-common'
113 $ppa_package = 'python-software-properties'
118 fail('Unable to determine value for fact os["name"]')