vendredi 23 janvier 2015

amazon opsowrks custom monit configuration file?

I have spent couple of hours trying to change default monit config .monitrc file in amazon opsworks. What I did is read all the recipes and find out the template in which this config is created: http://ift.tt/1EBQLJu



monit_config = file(::File.join(node[:monit][:conf_dir], "node_web_app-#{app}.monitrc")


I tried to change conf_dir variable by passing Custom Chef JSON at deploy but with no luck.



{
"monit": { "conf_dir": "/etc/monit/conf.d/custom" }
}


Could anybody help me. I dont want to rewrite recipes just to change monit config path if that is possible.





Aucun commentaire:

Enregistrer un commentaire