Forum: CFEngine Help Subject: Re: Variable Class Names Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,22838,22846#msg-22846
No, I can't show you an example. Looking thoroughly into the reference manual, I've figured out that classify() won't really help, so that you have to resort on Mike Svoboda's approach (I can repeat it for you if you didn't notice it): classes: "$(your_variable)" expression => "any"; The "any" class is always defined, so this way you'll have a class defined from a variable name. You can use "ifvarclass" conditional later in promises. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine