6f6e725e60
This functionality was lost because we stopped using a source file for the 50unattended-upgrades file that would previously let one override the configuration per release or per host.
21 lines
466 B
Puppet
21 lines
466 B
Puppet
class apt::unattended_upgrades (
|
|
$config_content = undef,
|
|
$mailonlyonerror = true,
|
|
$mail_recipient = 'root',
|
|
$blacklisted_packages = [],
|
|
) {
|
|
|
|
package { 'unattended-upgrades':
|
|
ensure => present
|
|
}
|
|
|
|
$file_content = $config_content ? {
|
|
undef => template('apt/50unattended-upgrades.erb'),
|
|
default => $config_content
|
|
}
|
|
|
|
apt_conf { '50unattended-upgrades':
|
|
content => $file_content,
|
|
require => Package['unattended-upgrades'],
|
|
}
|
|
}
|