Parametrize unattended-upgrades mail recipient
This commit is contained in:
parent
9192785c45
commit
d24ca3314f
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
class apt::unattended_upgrades (
|
||||
$config_content = undef,
|
||||
$mailonlyonerror = true,
|
||||
$mail_recipient = 'root',
|
||||
) {
|
||||
|
||||
package { 'unattended-upgrades':
|
||||
|
|
|
@ -20,7 +20,7 @@ APT::Periodic::Update-Package-Lists "1";
|
|||
APT::Periodic::Download-Upgradeable-Packages "1";
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
||||
|
||||
Unattended-Upgrade::Mail "root";
|
||||
Unattended-Upgrade::Mail "<%= mail_recipient -%>";
|
||||
<% if mailonlyonerror -%>
|
||||
Unattended-Upgrade::MailOnlyOnError "true";
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue