phlipper / chef-monit

Chef cookbook for monit package
http://phlippers.net/chef-monit
MIT License
67 stars 69 forks source link

Updating install_binary.rb to add support for rhel platform, and changin... #58

Closed smford22 closed 9 years ago

smford22 commented 10 years ago

...g default location of

default["monit"]["main_config_path"] for rhel platform_family.

This update adds support for rhel when using the install_binary.rb recipe by adding an init script to a newly created templates/default/rhel folder. To make this backwards compatible, the monit.init.rb template (compatible with Debian) has been moved to a separate folder at templates/default/debian. The install_binary.rb recipe was updated to use:

source #{node['platform_family'}/monit.init.rb

Additionally attributes/default.rb has been updated to use /etc/monitrc as the default path for default["monit"]["main_config_path"]

phlipper commented 9 years ago

@smford22 thank you very much for this. This should now be resolved via #68.