Michael Potter writes:

>    can do something like:
>    "alt_class" or => { "linux", "solaris", fileexists("/etc/fstab") };

That is where I got my idea from. All the machines are linux.
 
> hostnames are very descriptive and indicate 1) the machine role (e.g. 
> webserver, data-server) 2) the machine location (which datacentre) and 3) 
> whether the machine is dev, test  or prod. So I end up with classes like: 

Unfortunately we don't encode the location on the name. Also some machine 
names may not match the "type"  


I will give the flag file a try and see how it works.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to