Forum: CFEngine Help Subject: Re: convert class name into a string Author: msvob...@linkedin.com Link to topic: https://cfengine.com/forum/read.php?3,24123,24124#msg-24124
Heh. Good question. I go the other way around and can define classes based off of strings like this.... vars: # If we are on a Linux machine, pull the model from dmidecode so we can set a class on this. linux:: "linux_machine_model" string => canonify(execresult("/usr/sbin/dmidecode -s system-product-name","noshell")); classes: linux:: "$(linux_machine_model)" or => {"cfengine_3"}; But that doesn't exactly answer your question. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine