Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different clush.conf options for different hosts #407

Open
brianjmurrell opened this issue Jun 28, 2019 · 8 comments
Open

different clush.conf options for different hosts #407

brianjmurrell opened this issue Jun 28, 2019 · 8 comments

Comments

@brianjmurrell
Copy link

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.

@degremont
Copy link
Collaborator

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.

@brianjmurrell
Copy link
Author

I suppose ssh_options was a bad example.

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

@degremont
Copy link
Collaborator

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

@brianjmurrell
Copy link
Author

brianjmurrell commented Jun 28, 2019

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

Can we make this an RFE then?

@degremont
Copy link
Collaborator

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

@brianjmurrell
Copy link
Author

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.

@degremont
Copy link
Collaborator

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 ;)

@brianjmurrell
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants