Closed GoogleCodeExporter closed 8 years ago
This seems like a great feature, however the dshgroup module is meant to
be compatible with Junichi Uekawa's dsh (Dancer's Shell)
http://www.netfort.gr.jp/~dancer/software/dsh.html.en
and I don't think the version of dsh group files in that code supports 'include'
style statements.
However, since group files written for dsh would still work with pdsh even
after extra features are added (it just won't work the other way around)
perhaps this is ok. Let me think on it for a bit.
Another option is that you could try using genders, which is much more flexible.
You have all your hosts in one file, and hosts can be assigned multiple
attributes
(with optional values).
https://computing.llnl.gov/linux/genders.html
Original comment by mark.gro...@gmail.com
on 14 Apr 2011 at 5:01
Does dsh allow for comments? If so, perhaps you could do the following:
#include myGroupFile
#include /etc/dsh/group/systemGroupFile
This would give you the ability to parse for additional files to include while
allowing dsh to ignore them.
Scott
Original comment by macn...@gmail.com
on 8 Aug 2011 at 6:23
That is a good idea if there is still interest in having dshgroup files support
an include statement. I think the original person that opened this bug found
that genders was a good solution.
Original comment by mark.gro...@gmail.com
on 8 Aug 2011 at 10:21
I am certainly interested in the ability to have include statements, though I
may be in the minority.
Original comment by macn...@gmail.com
on 10 Aug 2011 at 8:53
Ok, I will see if I can get this into the next release.
Original comment by mark.gro...@gmail.com
on 10 Aug 2011 at 9:00
If you need any assistance in testing it, let me know. I have access to HP-UX,
SLES, RHEL, and Mac OS X (10.6).
Original comment by macn...@gmail.com
on 10 Aug 2011 at 9:03
This issue was closed by revision r1352.
Original comment by mark.gro...@gmail.com
on 12 Aug 2011 at 11:08
Ok, I've committed the changes to the trunk in r1325 (as you can see above).
I added some simple tests to the testsuite, so if you have time to test, please
do!
I would love to know how the testsuite does on HP-UX as well (make check).
Thanks!
mark
Original comment by mark.gro...@gmail.com
on 12 Aug 2011 at 11:09
Hi Mark,
The test on the Mac went well. HP-UX, however, croaked during the link as
strsep does not exist. I swapped strsep for strtok, which allowed gmake to
complete without errors (though there were a few warnings here and there). I
have yet to get everything to work, as the version of pdsh that ships with
HP-UX's DSAUtilities package (version 2.16) includes a modified mod.c and
dshbak (if you want to see these files, I can forward them to you).
I'll have more time next week to work on this, but wanted to get you an update.
Scott
Original comment by macn...@gmail.com
on 14 Aug 2011 at 6:56
[deleted comment]
Wow, thanks for doing all the testing! Sorry, I used strsep() without thinking,
thanks for pointing out the fix. I'll make the same change you did, or maybe
try to reuse
some code (already have list_split() to split a line on arbitrary characters,
so I'm
not sure why I used something different)
Is it ok to open a separate issue for the HP-UX issues?
Original comment by mark.gro...@gmail.com
on 15 Aug 2011 at 8:46
It's ok with me.
Original comment by macn...@gmail.com
on 15 Aug 2011 at 9:07
This issue was updated by revision r1357.
Use strtok instead of strsep when reading wcoll file for portability.
Thanks to <macnfaf at gmail dot com> for the suggested change.
Original comment by mark.gro...@gmail.com
on 19 Aug 2011 at 9:33
Original issue reported on code.google.com by
iffla...@gmail.com
on 14 Apr 2011 at 4:19