Forum: CFEngine Help Subject: more dynamic class fun Author: r3dn3ck Link to topic: https://cfengine.com/forum/read.php?3,24698,24698#msg-24698
Greetings: This is regarding cfengine-2.2.9 being run on CentOS 6 64bit in a purely virtual environment. I had this working once before but forgot how so i've come hat in hand a'begging. I need to have client machines make a sql query to identify a list of classes that the host will belong to in addition to all the usual suspects. The general problem being solved: we have a DB of virtual machines and real machines and functions and customers. the interaction of those elements causes changes to the configuration elements that are being applied. the hosts need to be able to be repurposed rapidly and we like cfengine to do the heavy lifting so all we should have to do is change a value in the Db and the client hosts end configuration should change to match because it's class membership changed. example: hostB is a linux blah blah server and the query it needs to perform for my case will return a newline delimited list of names we'll call: appserviceA customerA hostA vmA I need those to be interpreted as classes. the next run of cfagent should see those new classes and any subsequent runs of cfagent -v -p should return those classes in the defined classes list. now, I'm suspecting that cfenvd should handle this easily but the documentation is either lacking or I'm being obtuse and 2 days of searching this forum and Scroogle hasn't helped. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine