<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 24/11/2014 18:41, Benoit LAURENT
wrote:<br>
</div>
<blockquote
cite="mid:CAOKNA1sNrX2ZXXjNxOPu2-KXVQ8c1PeHjfY5qcu_w_HmRGXMSQ@mail.gmail.com"
type="cite">
<pre wrap="">Hello,
I would like to foreach all nodes to check if a process is alive and
generate a configuration dependee of a process,
I search a variable who it is contains all nodes, is it possible ?
Regards,
Benoit
PS : I check this page but I don't found it:
<a class="moz-txt-link-freetext" href="http://www.rudder-project.org/foswiki/System/ContextedVariables">http://www.rudder-project.org/foswiki/System/ContextedVariables</a>
</pre>
</blockquote>
<br>
Hello Benoit, <br>
<br>
You are right, there is not possibility - for now - to use inventory
properties as a parameter for directives. <br>
<br>
But I'm not sure I understand correctly your use case: the process
list in the inventory is not really reliable, because it is only a
snapshot of what was running on the node at the time of the
inventory, not an actualized, realtime content of process. <br>
<br>
So perhaps that if you want to do some configuration based on some
process, what you need is to look<tt> to the technique builder (since
Rudder 2.11). With that, you could build a technique checkink that
a service is running, and if so (or if not and restarted) do other
action. <br>
<br>
<br>
I Hope it helps, but don't hesitate to give any feedback,
especially if I didn't understood what you wanted to do. <br>
</tt><br>
Have a nice day!<br>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<style type="text/css"><!--
a.redlink:link { color: #962322; text-decoration: none; }
a.redlink:visited { color: #962322; text-decoration: none; }
.sig { font-family: sans-serif; font-size: small; }
.sigsmall { font-family: sans-serif; font-size: x-small; }
--></style>
<table width="380" border="0" cellpadding="0" cellspacing="2">
<tbody>
<tr>
<td colspan="2">
<hr></td>
</tr>
<tr>
<td colspan="2"><b><img alt=""
src="cid:part1.02070201.00090406@normation.com"
width="50" height="50" hspace="10" align="left"> <span
class="sig">François ARMAND</span></b><br>
<span class="sig"><i>Directeur de la R&D</i></span><br>
<span class="sig"><a class="redlink"
href="http://www.normation.com">Normation</a></span> </td>
</tr>
<tr>
<td colspan="2">
<hr></td>
</tr>
<tr>
<td colspan="2"><span class="sigsmall"><b>87 rue de Turbigo,
75003 Paris, France</b></span></td>
</tr>
<tr>
<td><span class="sigsmall">Telephone:</span></td>
<td><span class="sigsmall">+33 (0)1 83 62 99 23</span></td>
</tr>
<tr>
<td><span class="sigsmall">Mobile:</span></td>
<td><span class="sigsmall">+33 (0)6 63 37 60 55</span></td>
</tr>
<tr>
<td colspan="2">
<hr></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>