21 lines
599 B
Puppet
21 lines
599 B
Puppet
class apt::unattended_upgrades {
|
|
|
|
package { 'unattended-upgrades':
|
|
ensure => present,
|
|
require => undef,
|
|
}
|
|
|
|
apt_conf { '50unattended-upgrades':
|
|
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 => File['apt_config'],
|
|
}
|
|
}
|
|
}
|