bmort
2010-Jul-21 19:59 UTC
[Puppet Users] Monit module that supports both monitrc and monit.conf
Does anyone know of or have a module ( they are willing to share ) that supports both monitrc and monit.conf. Thank in advance. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Maher
2010-Jul-22 08:20 UTC
Re: [Puppet Users] Monit module that supports both monitrc and monit.conf
On 07/21/2010 09:59 PM, bmort wrote:> Does anyone know of or have a module ( they are willing to share ) > that supports both monitrc and monit.conf.Is there a functional / syntactical difference between monit.conf and monitrc, or are they just two implementations of the same thing (my interpretation is the latter). Assuming they are the same thing, why would you have both on a system in the first place ? Just pick one and be done with it. :) If you need to support different distros (and, thus, different filenames), then you could just use a simple case statement to pick the appropriate filename. See the following item in the documentation : http://docs.puppetlabs.com/guides/language_tutorial.html#case_statement -- Daniel Maher <dma AT witbe DOT net> "The Internet is completely over." -- Prince -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
bmort
2010-Jul-22 20:08 UTC
[Puppet Users] Re: Monit module that supports both monitrc and monit.conf
On Jul 22, 4:20 am, Daniel Maher <d...@witbe.net> wrote:> On 07/21/2010 09:59 PM, bmort wrote: > > > Does anyone know of or have a module ( they are willing to share ) > > that supports both monitrc and monit.conf. > > Is there a functional / syntactical difference between monit.conf and > monitrc, or are they just two implementations of the same thing (my > interpretation is the latter). >Latter.> Assuming they are the same thing, why would you have both on a system in > the first place ? Just pick one and be done with it. :) If you need to > support different distros (and, thus, different filenames), then you > could just use a simple case statement to pick the appropriate filename. > See the following item in the documentation :http://docs.puppetlabs.com/guides/language_tutorial.html#case_statement >Yes. Diff distros. Thank you for the refs to the language tutorial, that pointed me in the right direction. I ended up using. http://projects.puppetlabs.com/projects/puppet/wiki/Monit_Patterns Thanks again.> -- > Daniel Maher <dma AT witbe DOT net> > "The Internet is completely over." -- Prince-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.