Is it possible to use values from hiera variables in the tagmail.conf for mail address instead of hard coding them in tagmail.conf?
Basically I want to know if we can do something like this:
$send_error_to = hiera('email_to',[])
And use this $send_error_to in the email portion in tagmail.conf like this:
[tagmap]
crit,emerg,alert,err,warning: $send_error_to
And that should send the email to the ids mentioned in hiera. Please provide examples if it's possible. Many thanks!
↧