Comment 5 for bug 1144541

Revision history for this message
Tony Mancill (tmancill) wrote : Re: [Bug 1144541] Re: Clusters defined in ~/.clusterssh/config not working

On 11/12/2013 12:23 PM, mikelococo wrote:
> I confirm this bug is still present in 13.04. Steps to reproduce:
>
> 1) Edit ~/.clusterssh/config to add a cluster
> clusters=cluster1
> cluster1=hostname1.lan hostname2.lan
>
> 2) cssh cluster1
> ssh returns an error that indicates that hostname2.lan was passed as a parameter in the hostname1.lan ssh command instead of in a separate ssh command.
>
> 3) Apply the patch in this ticket to
> /usr/share/perl5/App/ClusterSSH/Config.pm
>
> 4) cssh cluster1 works windows for hostname1.lan and hostname2.lan
> appear with login prompts.
>

Hi,

Please try defining your clusters in the file ~/.clusterssh/clusters.

From the clusterssh manpage:

> FILES
> /etc/clusters, $HOME/.clusterssh/clusters
> These files contain a list of tags to server names mappings. When
> any name is used on the command line it is checked to see if it is
> a tag. If it is a tag, then the tag is replaced with the list of
> servers. The formated is as follows:
>
> <tag> [user@]<server> [user@]<server> [...]
>
> i.e.
>
> # List of servers in live
> live admin1@server1 admin2@server2 server3 server4
>
> All comments (marked by a #) and blank lines are ignored. Tags may
> be nested, but be aware of using recursive tags as they are not
> checked for.

Thank you,
tony