Say I have a defined classes which contains hosts which I simply name as such:
classes: "agents" or => { "agent01" , "agent02" , "agent03" }; "master" or => { "master01" }; Let's say I want to create a class which contains both classes: "agents_and_master" or => { "agent01" , "agent02" , "agent03" , "master01" }; Is there a way to create a class which contains multiple other classes? In this case I am only dealing with two classes, so I could use an OR expression, when selecting the hosts I want, eg. files: agents|master:: But it seems to me that OR will not work with more than two choices and in reality I want to merge more than two classes. I guess I could use an AND in that case? files: agents.master.other:: But my question still stands. And I would like to do something fancier than naming all the hosts in a class. Something like: "agents" expression => regcmp( "ag.*" , "${sys.host}"); but I have two hosts that would match that expression and I want to exclude them. Let's say they are agent041 and agent042. Thanks, Lisa Sittler
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine