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 $trusted_gpg_d = "${root}/trusted.gpg.d"
13 $conf_d = "${root}/apt.conf.d"
14 $preferences = "${root}/preferences"
15 $preferences_d = "${root}/preferences.d"
16 $keyserver = 'keyserver.ubuntu.com'
26 $auth_conf_entries = []
34 'path' => $preferences_d,
38 'path' => $sources_list_d,
44 'frequency' => 'reluctantly',
59 'sources.list' => false,
60 'sources.list.d' => false,
61 'preferences' => false,
62 'preferences.d' => false,
65 $source_key_defaults = {
66 'server' => $keyserver,
77 case $facts['os']['name']{
80 'location' => 'http://deb.debian.org/debian',
81 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
82 'repos' => 'main contrib non-free',
89 'location' => 'http://archive.ubuntu.com/ubuntu',
90 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
91 'repos' => 'main universe multiverse restricted',
94 $ppa_package = 'software-properties-common'
97 fail('Unable to determine value for fact os["name"]')