projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11171ea
)
simplify email_error default logic
author
Peter Palfrader
<peter@palfrader.org>
Wed, 25 Sep 2019 20:27:38 +0000
(22:27 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Wed, 25 Sep 2019 20:27:38 +0000
(22:27 +0200)
(by anarcat)
modules/bacula/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/bacula/manifests/init.pp
b/modules/bacula/manifests/init.pp
index
cf83a26
..
02cf506
100644
(file)
--- a/
modules/bacula/manifests/init.pp
+++ b/
modules/bacula/manifests/init.pp
@@
-20,7
+20,8
@@
class bacula (
String $ssl_server_key,
Optional[String] $email_all = undef,
- String $email_error = $email_all != undef ? { true => $email_all, default => 'root@localhost' },
+ # default to all if defined, otherwise default to 'root' to enforce error delivery
+ String $email_error = $email_all ? { undef => 'root', default => $email_all },
String $email_operator = $email_error,
String $email_daemon = $email_error,
Array[Stdlib::IP::Address] $public_addresses = $base::public_addresses,