FAQ
Hi,

that's actually a sound implementation.

Try this for debugging:

$comma_separated_list = inline_template("
<%= scope.lookupvar("::monit::services") * ', ' %>")

notify { "Services list: $comma_separated_list": }

Inside a class, not inside the defined type.

Cheers,
Felix
On 02/25/2013 03:52 PM, eduardo wrote:
Thanks felix,
I'm trying to do a validator for monit module.
I'm pretending down services are not controlled by monit, avoiding
false alarm from monit service.

I was work around with something like :

class monit($services) {

include monit::checkservice,
monit::snippet

monit::checkservice::checksrv{ $::monit::services : }

------

class monit::checkservice {
define checksrv {
notify { "Checking service $name":}
service { $name:
noop => true,
hasstatus => false,
status => "/usr/local/bin/check_service.sh ${name}",
}
}
}

where $services is array of services from ENC.
But it have been unsuccessfully. I can see notifies messages foreach
element from array but status script is not executed like i expected
foreach item.
--
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 puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedFeb 23, '13 at 5:33p
activeJul 22, '13 at 12:51p
posts5
users3
websitepuppetlabs.com

People

Translate

site design / logo © 2021 Grokbase