Since the conditional does not work for default values for params, fall back to sane...
[mirror/dsa-puppet.git] / modules / bacula / manifests / director.pp
index dd5395d..696ed7b 100644 (file)
@@ -31,6 +31,10 @@ class bacula::director(
   $some_pool_name = "poolfull-${pool_name}-${director_address}"
   $some_client_name = "${director_address}-fd"
 
+  $real_email_error    = $bacula::email_error    ? { true => $bacula::email_error   , default => 'root@localhost' }
+  $real_email_operator = $bacula::email_operator ? { true => $bacula::email_operator, default => 'root@localhost' }
+  $real_email_daemon   = $bacula::email_daemon   ? { true => $bacula::email_daemon  , default => 'root@localhost' }
+
   # let the SD know we exist
   @@bacula::storage::director{ $::fqdn:
     tag              => 'bacula::to-storage',