We've already built an external inventory system that does this (e.g. It has a notion of "role" like "oracle" -- and with even more granularity, "oracle-slave" or "oracle-master", etc.). While seeing this stuff added to nova is great, I imagine a lot of people have already done it themselves.
Our idea is to have each host record it's "state" in a central database, so reports can be easily ran against the centralized data, and even further a UI can be attached through which admins can update the database...and ultimately control client actions via clicky-clicky (by enabling/disabling classes). I look forward to the 2010 LISA/SJ class and possibly hearing more about nova. It would be good to know for certain which nova features we'd already developed ourselves while running cfe2. On 9/20/10 1:21 PM, "Mark Burgess" <mark.burg...@iu.hio.no> wrote: > This is something that will come in Nova 2. It is not as easy to answer as > you might think, as you have to know which classes can or have been defined on > each machine (simultaneously). The simplest way to approach this is to > measure each system and observe the probabilities. As an immediate (if > primitive) workaround, you could use a reports promise with the named class to > send a message to syslog, or an email etc. Justin Lloyd wrote: > Hi all, > > > > > As we¹ve been moving forward with our Nova implementation and > developing > an appropriate procedure for getting approval to make changes to > our > Cfengine policy, I¹ve realized that it would be incredibly important > to > know which systems will be affected by a policy change. So, given a > > class expression (³oracle.!gold², ³web_server|ftp_server², etc.), I¹d > like a > way of using Cfengine to generate a list of hosts that match the > > expression. > > > > My initial thought is derived from how a Nova policy > server gathers > statistics files from its clients. I could have the policy > server fetch > /var/cfengine/state/allclasses.txt from every host and then run > a script > on the policy server could use those files as the data from which > it > could generate such a list. For example, here¹s the most complicated > > class expression in our policy: > > > > pserver$ list-hosts > > ³!unix_lab.!nonstandard_sudoers_host.(linux|(solaris.zone_global.!usr_local_is > _nfs))² > > matchinghost1 > > matchinghost2 > > etc. > > pserver$ > > > > > Anyone have any other ideas? Anyone know if such a capability will be > > added to Nova 2.0? > > > > Thanks, > > Justin > > > > > > *Justin > C. Lloyd* > > Senior Unix Infrastructure Engineer > > *Office*: > 303.684.4166 > > > Description: Description: > cid:image001.gif@01CB11F3.8C8CBD70 > www.digitalglobe.com > <http://www.digitalglobe.com/> > > > > This electronic communication and > any attachments may contain confidential and proprietary > information of > DigitalGlobe, Inc. If you are not the intended recipient, or an agent or > employee > responsible for delivering this communication to the intended > recipient, or if you have received > this communication in error, please do > not print, copy, retransmit, disseminate or > otherwise use the information. > Please indicate to the sender that you have received this > communication in > error, and delete the copy you received. DigitalGlobe reserves the > right to > monitor any electronic communication sent or received by its employees, agents > > or representatives. > > > > ------------------------------------------------------------------------ > > > _______________________________________________ > Help-cfengine mailing list > > Help-cfengine@cfengine.org > > https://cfengine.org/mailman/listinfo/help-cfengine -- Mark > Burgess ------------------------------------------------- Professor of > Network and System Administration Oslo University College, Norway Personal > Web: http://www.iu.hio.no/~mark Office Telf : +47 > 22453272 ------------------------------------------------- ___________________ > ____________________________ Help-cfengine mailing > list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfe > ngine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine