module-apt/manifests/unattended_upgrades.pp

16 lines
376 B
ObjectPascal
Raw Normal View History

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,
}
config_file {
2009-10-30 21:15:21 +01:00
"/etc/apt/apt.conf.d/unattended_upgrades":
content => 'APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
',
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'],
}
}