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":
|
2012-04-15 15:41:58 +02:00
|
|
|
source => ["puppet:///modules/site_apt/$lsbdistcodename/50unattended-upgrades",
|
|
|
|
"puppet:///modules/site_apt/50unattended-upgrades",
|
2011-06-05 14:58:22 +02:00
|
|
|
"puppet:///modules/apt/$lsbdistcodename/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"] {
|
2011-08-05 11:22:05 +02:00
|
|
|
before => Concat[apt_config],
|
2010-10-25 18:17:50 +02:00
|
|
|
}
|
|
|
|
}
|
2009-10-30 20:35:30 +01:00
|
|
|
}
|