Forum: CFEngine Help
Subject: Re: fileexists() on remote host
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,24026,24030#msg-24030

The best way IMO is to actually define what hosts get custom profiles.  Use a 
class.  If an agent is a class member get it's personal profile.  If not then 
get the default profile. I don't like the agent to make too many decisions 
based on external criteria, such as external files on other hosts.

If you choose to stick with what you have then you might be able to point the 
agent at the custom location using a files promise.  If that promise is not 
repaired or kept, because the custom file does not exist, then set a class and 
invoke a files promise for the default profile.

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to