module-apt/manifests/unattended_upgrades.pp
2010-08-14 13:56:31 +02:00

15 lines
376 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 => Config_file[apt_config],
require => Package['unattended-upgrades'],
}
}