Forum: CFEngine Help
Subject: Re: convert class name into a string
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,24123,24128#msg-24128
Does this help you?
body common control {
bundlesequence => {
"main",
};
}
bundle agent main {
vars:
"mystring" string => "mystring_value";
classes:
"$(mystring)" expression => isvariable("mystring");
}
cf3> *****************************************************************
cf3> BUNDLE main
cf3> *****************************************************************
cf3>
cf3>
cf3> =========================================================
cf3> vars in bundle main (1)
cf3> =========================================================
cf3>
cf3>
cf3> =========================================================
cf3> classes in bundle main (1)
cf3> =========================================================
cf3>
cf3> Initiate variable convergence...
cf3>
cf3> + Private classes augmented:
cf3> + mystring_value
cf3>
cf3> - Private classes diminished:
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine