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'
32 'path' => $preferences_d,
36 'path' => $sources_list_d,
42 'frequency' => 'reluctantly',
57 'sources.list' => false,
58 'sources.list.d' => false,
59 'preferences' => false,
60 'preferences.d' => false,
63 $source_key_defaults = {
64 'server' => $keyserver,
75 case $facts['os']['name']{
78 'location' => 'http://deb.debian.org/debian',
79 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
80 'repos' => 'main contrib non-free',
87 'location' => 'http://archive.ubuntu.com/ubuntu',
88 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5',
89 'repos' => 'main universe multiverse restricted',
92 $ppa_package = 'software-properties-common'
95 fail('Unable to determine value for fact os["name"]')