2009-10-30 20:35:30 +01:00
|
|
|
class apt::unattended_upgrades {
|
2010-12-07 19:18:41 +01:00
|
|
|
|
|
|
|
package { 'unattended-upgrades':
|
2013-01-02 14:12:11 +01:00
|
|
|
ensure => present,
|
2009-10-30 23:07:12 +01:00
|
|
|
require => undef,
|
|
|
|
}
|
2009-10-30 20:51:31 +01:00
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
apt_conf { '50unattended-upgrades':
|
2012-06-06 02:31:15 +02:00
|
|
|
source => [
|
2013-01-02 14:12:11 +01:00
|
|
|
"puppet:///modules/site_apt/${::lsbdistcodename}/50unattended-upgrades",
|
|
|
|
'puppet:///modules/site_apt/50unattended-upgrades',
|
|
|
|
"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
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
if $apt::custom_preferences != false {
|
|
|
|
Apt_conf['50unattended-upgrades'] {
|
|
|
|
before => Concat['apt_config'],
|
2010-10-25 18:17:50 +02:00
|
|
|
}
|
|
|
|
}
|
2009-10-30 20:35:30 +01:00
|
|
|
}
|