Hi, I'm almost certain I don't really understand your problem, but here's the most simple answer, so we can work from there:
Your ENC should set a variable value for each service on each node, e.g.: $ssh => true $ntp => false ... If a given value is true, include the snippet. If not, don't. On 02/23/2013 06:33 PM, eduardo wrote: > Hi all. > I'm working on monit module. I have an array of services to configure > monit via ENC. > I need a consistent module logic so services arriving as input > parameter must running on node agent. > > I'm trying to find out if there is services running to configure monit > snippets. > So, The snippet will be only written into /etc/monit/conf.d when > service is running. > > Let's say an input parameter like : > > services => ['ntp','ssh'] > > But ntp service is not running. In that case I need the snippet for > 'ntp' service not be written on conf.d > > Is there simple way to do it ?. > > > Thanks in advanced, eduardo. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
