With lots of help from Michael Ciavarella I got an initial test setup going.
The first thing that became obvious is that there wasn't a straightfoward 
way to define groups of machines for receiving certain tasks/files.

Looking at the official tutorial at 
http://www.cfengine.org/manuals/cf3-tutorial.html#Decisions I see that one 
can do something like:
"alt_class" or => { "linux", "solaris", fileexists("/etc/fstab") };

Could one just use fileexists to define classes to target different machine 
types?

For example creating:
/cfengine-machine-type-smtp
/cfengine-machine-type-web
/cfengine-machine-type-db

So each type of machine would only have one of the 3 files and then I would 
use fileexists to define the proper soft class for the machine.

Is that a reasonable approach or is there some other better way to have 
groups of types of machines?

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

Reply via email to