Parametrize unattended-upgrades mail recipient

This commit is contained in:
Gabriel Filion 2013-07-27 13:42:54 -04:00
parent 9192785c45
commit d24ca3314f
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
class apt::unattended_upgrades (
$config_content = undef,
$mailonlyonerror = true,
$mail_recipient = 'root',
) {
package { 'unattended-upgrades':

View file

@ -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 -%>