1 # @summary Provides defaults for the Apt module parameters.
6 if $facts['os']['family'] != 'Debian' {
7 fail('This module only works on Debian or derivatives like Ubuntu')
11 $provider = '/usr/bin/apt-get'
12 $sources_list = "${root}/sources.list"
13 $sources_list_force = false
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 $apt_conf_d = "${root}/apt.conf.d"
20 $keyserver = 'keyserver.ubuntu.com'
31 $manage_auth_conf = true
32 $auth_conf_entries = []
40 'path' => $preferences_d,
44 'path' => $sources_list_d,
50 'frequency' => 'reluctantly',
61 'https_acng' => false,
66 'sources.list' => false,
67 'sources.list.d' => false,
68 'preferences' => false,
69 'preferences.d' => false,
70 'apt.conf.d' => false,
78 case $facts['os']['name'] {
81 'location' => 'http://deb.debian.org/debian',
82 'repos' => 'main contrib non-free',
86 $auth_conf_owner = '_apt'
90 'location' => 'http://archive.ubuntu.com/ubuntu',
91 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
92 'repos' => 'main universe multiverse restricted',
95 $ppa_package = 'software-properties-common'
96 $auth_conf_owner = '_apt'
99 fail('Unable to determine value for fact os[\"name\"]')
105 $auth_conf_owner = 'root'