On Wed, 14 Dec 2011, Ted Zlatanov wrote:
...
>
> MD> What I'm trying to avoid is the situation, like in the example below,
> MD> where the "no_file_exists" class expression has to be rewritten
> MD> everytime I need to test for another file:
>
> I understand. Try this, I think it will do what you want.
...
> vars:
> any::
> "root" string => "myroot3", policy => "overridable";
> my_file_exists::
> "root" string => "myroot1", policy => "overridable";
> your_file_exists::
> "root" string => "myroot2", policy => "overridable";
...
Bingo! Thanks :)
OK, so this works because of rule 5 of agent normal ordering ("The order
of promises within one of the above types follows their top-down ordering
within the bundle itself") from the reference manual?
http://cfengine.com/manuals/cf3-reference.html#Agent-normal-ordering
Cheers,
Mark
--
-----------------------------------------------------------------
Mark Dixon Email : [email protected]
HPC/Grid Systems Support Tel (int): 35429
Information Systems Services Tel (ext): +44(0)113 343 5429
University of Leeds, LS2 9JT, UK
-----------------------------------------------------------------
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine