From: Kenneth W. <hap...@gm...> - 2011-05-16 17:36:48
|
I'm pregenerating nodegroups.xml from nVentory through a bash script via crontab... mainly to offload from nVentory... The basic format is: <!DOCTYPE nodegroups SYSTEM "nodegroups.dtd"> <nodegroups> <nodegroup name="parent_group_1"> <child>child_a</child> <child>child_b</child> </nodegroup> <nodegroup name="parent_group_2"> <child>child_c</child> <child>child_d</child> </nodegroup> <nodegroups> Etch seems to be happy with this setup. Only caveat I've seen from this: do your file creation in /tmp or something and then move the final file on top of /etc/etchserver/nodegroups.xml or else your clients may get some malformed xml messages during the file generation, and also load the xml in some parser first using the dtd to sanity check the syntax just in case of a hiccup in your scripts... you really don't want bad xml running around in your nodes.xml or nodegroups.xml... it tends to screw things up a bit ;) On Mon, May 16, 2011 at 10:02 AM, Johnston, Nathaniel < Nat...@ca...> wrote: > Is there any support for an external script to output the equivalent to > the nodegroups.xml file? > > --N. > > On May 16, 2011, at 12:59 PM, Jason Heiss wrote: > > The output from nodegrouper is plain text, one group name per line. > I.e.: > > % nodegrouper host1.example.com > group1 > group2 > othergroup > > > On May 16, 2011, at 9:49 AM, Johnston, Nathaniel wrote: > > I am not using nVentory, so I am unable to grok the provided example script > for externally based "nodegrouper". If I am fashioning my own "nodegrouper" > script, will the output be XML? Can you give me an example of what the > output would look like? > > > Thanks much! > > > --N. > > > > --N. > > ---- > Nate Johnston "You are what you automate." > Nat...@ca... ph:703-939-8521 > > > > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > etch-users mailing list > etc...@li... > https://lists.sourceforge.net/lists/listinfo/etch-users > > -- Kenneth Williams |