module-apt/manifests/unattended_upgrades.pp
Gabriel Filion 6f6e725e60 Add parameter for blacklisting a list of packages.
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.
2015-04-17 16:43:26 -04:00

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'],
}
}