module-apt/manifests/unattended_upgrades.pp

22 lines
601 B
ObjectPascal
Raw Normal View History

class apt::unattended_upgrades {
2010-12-07 19:18:41 +01:00
package { 'unattended-upgrades':
ensure => present,
2009-10-30 23:07:12 +01:00
require => undef,
}
apt_conf { '50unattended-upgrades':
2012-06-06 02:31:15 +02:00
source => [
"puppet:///modules/site_apt/${::lsbdistcodename}/50unattended-upgrades",
'puppet:///modules/site_apt/50unattended-upgrades',
"puppet:///modules/apt/${::lsbdistcodename}/50unattended-upgrades" ],
require => Package['unattended-upgrades'],
}
if $apt::custom_preferences != false {
Apt_conf['50unattended-upgrades'] {
before => Concat['apt_config'],
}
}
}