server groups in a single hostfile?

44 views
Skip to first unread message

Xizhen Du

unread,
Jul 10, 2013, 10:53:11 PM7/10/13
to parall...@googlegroups.com
Hi All,

Does pssh support that we can define several server groups in a single host file?

'@group_a' has servers : host-a1 host-a2 host-a3... etc..
'@group_b' has servers : host-b1 host-b2 host-b3... etc..

if so we can maintain 1 single hostfile for all hosts we have, quite like tentakel if you have used it before.

expected that we can run commands for some a group only, something like: pssh -g @group_a "cmds"

Please let me  know if I missed something.

Thanks,
Du




Andrew McNabb

unread,
Jul 11, 2013, 1:35:36 PM7/11/13
to parall...@googlegroups.com
On Wed, Jul 10, 2013 at 07:53:11PM -0700, Xizhen Du wrote:
>
> Does pssh support that we can define several server groups in a single host
> file?
>
> '@group_a' has servers : host-a1 host-a2 host-a3... etc..
> '@group_b' has servers : host-b1 host-b2 host-b3... etc..
>
> if so we can maintain 1 single hostfile for all hosts we have, quite like
> tentakel if you have used it before.

No, but you can easily use multiple host files, one for each group. If
you want to use multiple groups, you can use the -h option multiple
times.

--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868
Reply all
Reply to author
Forward
0 new messages