1 # @summary Provides defaults for the Apt module parameters.
7 if $facts['os']['family'] != 'Debian' {
8 fail('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_force = false
15 $sources_list_d = "${root}/sources.list.d"
16 $trusted_gpg_d = "${root}/trusted.gpg.d"
17 $conf_d = "${root}/apt.conf.d"
18 $preferences = "${root}/preferences"
19 $preferences_d = "${root}/preferences.d"
20 $apt_conf_d = "${root}/apt.conf.d"
21 $keyserver = 'keyserver.ubuntu.com'
32 $manage_auth_conf = true
33 $auth_conf_entries = []
41 'path' => $preferences_d,
45 'path' => $sources_list_d,
51 'frequency' => 'reluctantly',
62 'https_acng' => false,
67 'sources.list' => false,
68 'sources.list.d' => false,
69 'preferences' => false,
70 'preferences.d' => false,
71 'apt.conf.d' => false,
79 case $facts['os']['name']{
82 'location' => 'http://deb.debian.org/debian',
83 'repos' => 'main contrib non-free',
87 if versioncmp($facts['os']['release']['major'], '9') >= 0 {
88 $auth_conf_owner = '_apt'
90 $auth_conf_owner = 'root'
95 'location' => 'http://archive.ubuntu.com/ubuntu',
96 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
97 'repos' => 'main universe multiverse restricted',
100 $ppa_package = 'software-properties-common'
101 if versioncmp($facts['os']['release']['full'], '16.04') >= 0 {
102 $auth_conf_owner = '_apt'
104 $auth_conf_owner = 'root'
108 fail('Unable to determine value for fact os[\"name\"]')
114 $auth_conf_owner = 'root'