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'
25 $auth_conf_entries = []
33 'path' => $preferences_d,
37 'path' => $sources_list_d,
43 'frequency' => 'reluctantly',
58 'sources.list' => false,
59 'sources.list.d' => false,
60 'preferences' => false,
61 'preferences.d' => false,
64 $source_key_defaults = {
65 'server' => $keyserver,
76 case $facts['os']['name']{
79 'location' => 'http://deb.debian.org/debian',
80 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
81 'repos' => 'main contrib non-free',
88 'location' => 'http://archive.ubuntu.com/ubuntu',
89 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
90 'repos' => 'main universe multiverse restricted',
93 $ppa_package = 'software-properties-common'
96 fail('Unable to determine value for fact os["name"]')