add $ensure_version parameter, to allow for overriding which version of unattended-upgrades is installed
This commit is contained in:
parent
d483ddbbf0
commit
a7cc68ed99
1 changed files with 2 additions and 1 deletions
|
@ -3,10 +3,11 @@ class apt::unattended_upgrades (
|
||||||
$mailonlyonerror = true,
|
$mailonlyonerror = true,
|
||||||
$mail_recipient = 'root',
|
$mail_recipient = 'root',
|
||||||
$blacklisted_packages = [],
|
$blacklisted_packages = [],
|
||||||
|
$ensure_version = present
|
||||||
) {
|
) {
|
||||||
|
|
||||||
package { 'unattended-upgrades':
|
package { 'unattended-upgrades':
|
||||||
ensure => present
|
ensure => $ensure_version
|
||||||
}
|
}
|
||||||
|
|
||||||
$file_content = $config_content ? {
|
$file_content = $config_content ? {
|
||||||
|
|
Loading…
Reference in a new issue