3 # This module manages the initial configuration of apt.
6 # Both of the parameters listed here are not required in general and were
7 # added for use cases related to development environments.
8 # disable_keys - disables the requirement for all packages to be signed
9 # always_apt_update - rather apt should be updated on every run (intended
10 # for development environments where package updates are frequent
18 $disable_keys = false,
19 $always_apt_update = false
24 $refresh_only_apt_update = $always_apt_update? {
29 package { "python-software-properties": }
31 file { "sources.list":
32 name => "${apt::params::root}/sources.list",
39 file { "sources.list.d":
40 name => "${apt::params::root}/sources.list.d",
47 command => "${apt::params::provider} update",
48 subscribe => [ File["sources.list"], File["sources.list.d"] ],
49 refreshonly => $refresh_only_apt_update,
52 exec { 'make-apt-insecure':
53 command => '/bin/echo "APT::Get::AllowUnauthenticated 1;" >> /etc/apt/apt.conf.d/99unauth',
54 creates => '/etc/apt/apt.conf.d/99unauth'