instance). pre-auto performs this action before downloading new
packages."
-
$lsbdistcodename
----------------
Contains the codename ("etch", "lenny", ...) of the client's
where individual key files can be placed. If this is set and keys
exist there, this module will apt-key add each key
+$apt_unattended_upgrades
+------------------------
+
+If this variable is set to true apt::unattended_upgrades is included,
+which will install the package unattended-upgrades and configure it to
+daily upgrade the system.
+
Classes
=======
}
}
+ if $apt_unattended_upgrades {
+ include apt::unattended_upgrades
+ }
+
$apt_base_dir = "${module_dir_path}/apt"
module_dir { apt: }
# watch apt.conf.d
--- /dev/null
+class apt::unattended_upgrades {
+ package{'unattended-upgrades': }
+ config_file {
+ "/etc/apt/apt.conf.d/unattended_upgrades":
+ content => "APT::Periodic::Update-Package-Lists "1";
+APT::Periodic::Unattended-Upgrade "1";
+",
+ before => File[apt_config],
+ require => Package['unattended-upgrades'],
+ }
+ }
+}