2009-10-30 20:35:30 +01:00
|
|
|
class apt::unattended_upgrades {
|
2009-10-30 23:07:12 +01:00
|
|
|
package{'unattended-upgrades':
|
2009-10-30 23:15:46 +01:00
|
|
|
ensure => present,
|
2009-10-30 23:07:12 +01:00
|
|
|
require => undef,
|
|
|
|
}
|
2009-10-30 20:51:31 +01:00
|
|
|
|
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
|
|
|
',
|
2010-08-14 13:56:31 +02:00
|
|
|
before => Config_file[apt_config],
|
2009-10-30 21:15:21 +01:00
|
|
|
require => Package['unattended-upgrades'],
|
2009-10-30 20:35:30 +01:00
|
|
|
}
|
|
|
|
}
|