Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 257

Using hiera data in tagmail.conf

$
0
0
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!

Viewing all articles
Browse latest Browse all 257

Trending Articles