2009-10-30 20:35:30 +01:00
|
|
|
class apt::unattended_upgrades {
|
2010-12-07 19:18:41 +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
|
|
|
|
2010-10-25 07:44:04 +02:00
|
|
|
apt_conf { "50unattended-upgrades":
|
2010-10-24 15:07:34 +02:00
|
|
|
source => ["puppet:///modules/site-apt/50unattended-upgrades",
|
|
|
|
"puppet:///modules/apt/50unattended-upgrades" ],
|
2010-10-09 13:39:39 +02:00
|
|
|
require => Package['unattended-upgrades'],
|
2009-10-30 20:35:30 +01:00
|
|
|
}
|
2010-10-25 18:17:50 +02:00
|
|
|
|
|
|
|
if $custom_preferences != false {
|
|
|
|
Apt_conf["50unattended-upgrades"] {
|
|
|
|
before => Concatenated_file[apt_config],
|
|
|
|
}
|
|
|
|
}
|
2009-10-30 20:35:30 +01:00
|
|
|
}
|