summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2015-04-15 08:52:17 -0700
committerMorgan Haskel <morgan@puppetlabs.com>2015-04-15 10:45:55 -0700
commit3d3c9680428b0a47f70b0edc8fa39b3003d193f9 (patch)
tree61cc6e19348c194bf117d7b667d2b3aa3ff0175b /templates
parented9062821f80ab5b47f903b2d11907be18128af3 (diff)
Fix to use the `mail` hash.
Testing unattended upgrades
Diffstat (limited to 'templates')
-rw-r--r--templates/unattended-upgrades.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/unattended-upgrades.erb b/templates/unattended-upgrades.erb
index 5007193..0b015fd 100644
--- a/templates/unattended-upgrades.erb
+++ b/templates/unattended-upgrades.erb
@@ -33,16 +33,16 @@ Unattended-Upgrade::MinimalSteps "<%= @minimal_steps.to_s %>";
// This will (obviously) make shutdown slower
Unattended-Upgrade::InstallOnShutdown "<%= @install_on_shutdown.to_s %>";
-<% unless @mail_to.nil? %>
+<% unless @mail['to'].nil? %>
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed.
-Unattended-Upgrade::Mail "<%= @mail_to %>";
+Unattended-Upgrade::Mail "<%= @mail['to'] %>";
// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
-Unattended-Upgrade::MailOnlyOnError "<%= @mail_only_on_error.to_s %>";
+Unattended-Upgrade::MailOnlyOnError "<%= @mail['only_on_error'].to_s %>";
<% end %>
// Do automatic removal of new unused dependencies after the upgrade