Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location of the email template file #58

Closed
twocs opened this issue Nov 25, 2020 · 2 comments · Fixed by #59
Closed

Location of the email template file #58

twocs opened this issue Nov 25, 2020 · 2 comments · Fixed by #59

Comments

@twocs
Copy link

twocs commented Nov 25, 2020

For Sensu Go, there might be a base Docker location where we run sensuctl commands, a sensu-backend, and a sensu-frontend. They can all have /etc/sensu/email_template.

Where is the file supposed to go? /etc/sensu/email_template is just too vague a description of the location.

@jspaleta
Copy link
Contributor

Since the handlers such as this email handler are run from one of the sensu backend instances, any supporting file needed for handler operation would need to be available on all backends in the cluster during normal operation.

Would a note in the readme pointing out that the email template file needs to exists on the sensu backends?

@twocs
Copy link
Author

twocs commented Nov 27, 2020

Yes, that would be useful. Maybe something like this?

https://github.com/sensu/sensu-email-handler#templates
The plugin provides an option to use a template as for the body of the email and is capable of using HTML for formatting the email. The template file for handler operation would need to be available on all backends in the cluster during normal operation. An example is provided below:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants