As Diego does, I strongly suggest the second solution; it has been used 
by many users and is known to work well. If you only need to send 
"commands" to remote host, it the best solution

Modifying automagically policies needs quite a lot of tests if you are 
using a home made solution, and is probably not worth the burden for 
this use case.

Regards

Nicolas CHARLES


On 12/01/2012 00:13, no-re...@cfengine.com wrote:
> Forum: CFEngine Help
> Subject: Re: seek second thought
> Author: zzamboni
> Link to topic: https://cfengine.com/forum/read.php?3,24549,24550#msg-24550
>
> I would strongly prefer the second method - that is what cf-runagent and its 
> ability to define classes are for. Modifying policies automatically feels 
> dangerous and full of failure opportunities. What if the update process fails 
> and the client never removes the marker file, for example?
>
> Any promise can be conditioned with ifvarclass, it's one of the common 
> attributes: 
> https://cfengine.com/manuals/cf3-reference.html#ifvarclass-in-_002a
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to