1 # @summary Provides defaults for the Apt module parameters.
7 if $::osfamily != 'Debian' {
8 fail(translate('This module only works on Debian or derivatives like Ubuntu'))
12 $provider = '/usr/bin/apt-get'
13 $sources_list = "${root}/sources.list"
14 $sources_list_d = "${root}/sources.list.d"
15 $trusted_gpg_d = "${root}/trusted.gpg.d"
16 $conf_d = "${root}/apt.conf.d"
17 $preferences = "${root}/preferences"
18 $preferences_d = "${root}/preferences.d"
19 $keyserver = 'keyserver.ubuntu.com'
29 $manage_auth_conf = true
30 $auth_conf_entries = []
38 'path' => $preferences_d,
42 'path' => $sources_list_d,
48 'frequency' => 'reluctantly',
63 'sources.list' => false,
64 'sources.list.d' => false,
65 'preferences' => false,
66 'preferences.d' => false,
69 $source_key_defaults = {
70 'server' => $keyserver,
81 case $facts['os']['name']{
84 'location' => 'http://deb.debian.org/debian',
85 'repos' => 'main contrib non-free',
89 if versioncmp($facts['os']['release']['major'], '9') >= 0 {
90 $auth_conf_owner = '_apt'
92 $auth_conf_owner = 'root'
97 'location' => 'http://archive.ubuntu.com/ubuntu',
98 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
99 'repos' => 'main universe multiverse restricted',
102 $ppa_package = 'software-properties-common'
103 if versioncmp($facts['os']['release']['full'], '16.04') >= 0 {
104 $auth_conf_owner = '_apt'
106 $auth_conf_owner = 'root'
110 fail(translate('Unable to determine value for fact os[\"name\"]'))
116 $auth_conf_owner = 'root'