On May 7, 2009, at 5:54 AM, Manish Chakravarty wrote:

>
> Hello Everyone,
>
> First, let me describe what I plan to do:
> I want to write monit provider which
> a) populates the configuration file
> b) restarts monit
>
> I have written the two pieces separately.
> The first piece inherits from parsedfile and does the configuration
> file properly
> The second piece inherits from base.rb and provides commands to
> stop/start/restart service.
>
> I want to combine them into one piece for a complete monit resource  
> type.
>
> How do you suggest I go about doing it?

I'm not sure that's actually what you want.  You need a resource type  
that manages monit configuration files, but the resource type that  
manages the monit service should probably just be a normal service  
resource.   You could have your resource automatically notify the  
monit resource (there's no hook for that, but you can just add the  
relationship in the initialize method or something).

-- 
The trouble with the rat race is that even if you win, you're still a
rat. -- Lily Tomlin
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to