metrixware-echoes-tech / puppet-monit

Puppet module to manage monit installation and configuration
https://forge.puppetlabs.com/echoes/monit
Apache License 2.0
4 stars 48 forks source link

Make 'message' last element of mail-format in monitrc.erb #34

Open johnzimm opened 6 years ago

johnzimm commented 6 years ago

Fixes #33. The "message" element in "mailformat" needs to be the last entry. Otherwise the elements following "message" after sorting get included in the body of the message. I've saved the value for "message", removed it from the hash, let the sort happen on the remaining elements, then append the saved message to the mailformat block before closing.

I've tested on my systems both supplying a custom message to the module and supplying no message to the module.