module-apt/manifests/unattended_upgrades.pp
mh 4d28e6668f introduce preferences snippet
Now, we have the possibility to externally add snippes, so that
we can preferences for packages that are for example only in backports
or unstable.
2010-10-17 13:58:59 +02:00

15 lines
382 B
Puppet

class apt::unattended_upgrades {
package{'unattended-upgrades':
ensure => present,
require => undef,
}
config_file {
"/etc/apt/apt.conf.d/unattended_upgrades":
content => 'APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
',
before => Concatenated_file[apt_config],
require => Package['unattended-upgrades'],
}
}