Check out this:

    http://lists.gnu.org/archive/html/help-cfengine/2004-12/msg00047.html


Kelly Brown wrote:

> Hello all:
> 
> I need help with some syntax.
> 
> I want to copy a file first based off of hostname, then off of a class
> name then just a default file.
> 
> For example, if my hosts name is bubba and he's in the class webserver
> then I want to first try to copy file.bubba if it exists.  If that
> doesn't exist then I want to copy file.webserver.  Then if both of those
> don't exist I want to copy file.generic.
> 
> Does anybody have a good way to do this?
> 
> Thx
> -Kelly
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
> 

_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to