2009-10-30 20:35:30 +01:00
|
|
|
class apt::unattended_upgrades {
|
2009-10-30 20:51:31 +01:00
|
|
|
package{'unattended-upgrades': ensure => present }
|
|
|
|
|
2009-10-30 20:35:30 +01:00
|
|
|
config_file {
|
2009-10-30 21:15:21 +01:00
|
|
|
"/etc/apt/apt.conf.d/unattended_upgrades":
|
|
|
|
content => 'APT::Periodic::Update-Package-Lists "1";
|
2009-10-30 20:35:30 +01:00
|
|
|
APT::Periodic::Unattended-Upgrade "1";
|
2009-10-30 20:51:31 +01:00
|
|
|
',
|
2009-10-30 21:15:21 +01:00
|
|
|
before => File[apt_config],
|
|
|
|
require => Package['unattended-upgrades'],
|
2009-10-30 20:35:30 +01:00
|
|
|
}
|
|
|
|
}
|