clustershell icon indicating copy to clipboard operation
clustershell copied to clipboard

different clush.conf options for different hosts

Open brianjmurrell opened this issue 5 years ago • 8 comments

How can I have different options for different groups of nodes a la clush.conf style?

For example for hosts foo-[1-5], I want to set ssh_options to one set of options but for foo-[6-9], I want ssh_options to be a different set of options.

Is this possible in any way? clush.conf appears to be a global set of options for all nodes.

brianjmurrell avatar Jun 28 '19 00:06 brianjmurrell

This is not possible inside clustershell but the best way to do this for you is probably to put them in ssh_config file.

If you don't want to change your global config, you can specify that in a dedicated ssh_config and specify it to be used by clustershell, either on the command line with "-o -F <FILE>" or in clush.conf with the same options.

degremont avatar Jun 28 '19 10:06 degremont

I suppose ssh_options was a bad example.

What if I want a different ssh_path for different groups of hosts?

brianjmurrell avatar Jun 28 '19 11:06 brianjmurrell

Indeed this is not possible with the command line tools. You can only do that with the python API.

degremont avatar Jun 28 '19 11:06 degremont

But it's using the clush to replace pdsh that is my use-case. :-(

Can we make this an RFE then?

brianjmurrell avatar Jun 28 '19 11:06 brianjmurrell

This is possible with pdsh? Could you point me to a doc explaining how pdsh is doing that?

degremont avatar Jun 28 '19 11:06 degremont

I wasn't saying it was possible with pdsh. I was looking to clush as a replacement, to be better than pdsh but unfortunately this is one area where it isn't.

brianjmurrell avatar Jun 28 '19 11:06 brianjmurrell

We could consider this as an RFE, but I assume this is not a blocker for your replacement, as pdsh does not have this feature either. And CS has already a lot of very interesting additional features compared to pdsh ;)

degremont avatar Jun 28 '19 13:06 degremont

No, not a blocker and agreed, that CS does already have lots of interesting features over pdsh.

brianjmurrell avatar Jun 28 '19 14:06 brianjmurrell