blob: 6cb0518c1c5fd185790d6df2f45552ec4c239fd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
class apt::unattended_upgrades (
$config_content = undef,
$mailonlyonerror = true,
$mail_recipient = 'root',
$blacklisted_packages = [],
$ensure_version = present
) {
package { 'unattended-upgrades':
ensure => $ensure_version
}
$file_content = $config_content ? {
undef => template('apt/50unattended-upgrades.erb'),
default => $config_content
}
apt_conf { '50unattended-upgrades':
content => $file_content,
require => Package['unattended-upgrades'],
refresh_apt => false
}
}
|