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

ssh_user: root only for certain hosts / connections #554

Open
skwde opened this issue Jan 31, 2024 · 4 comments
Open

ssh_user: root only for certain hosts / connections #554

skwde opened this issue Jan 31, 2024 · 4 comments

Comments

@skwde
Copy link

skwde commented Jan 31, 2024

To my understanding the way to do this is to implement a specific run mode, i.e. a file clush.conf.d/root-ssh.conf

[mode:root-ssh]
ssh_user: root
ssh_options: -i <identitiy file to use> -oStrictHostKeyChecking=no

I see two problems with this

  1. I always have to explicitly use --mode root-ssh
  2. It is not possible to specify which nodes should use --mode root-ssh and which should use normal ssh in a single command.
@degremont
Copy link
Collaborator

degremont commented Jan 31, 2024 via email

@skwde
Copy link
Author

skwde commented Feb 1, 2024

I would like to avoid making changes to ssh config because this would require either that all clustershell users make the change or I make a modification on all machines.

For now I go with ssh as root to all machines.

Are there any plans when / if something like run modes for host groups are implemented?

@thiell
Copy link
Collaborator

thiell commented Feb 1, 2024

Thanks @skwde for clearly describing your issues / use cases!

Are there any plans when / if something like run modes for host groups are implemented?

It would indeed be a natural improvement for clush to support automatic run mode selection by node sets (and groups) as defined in clush.conf for example.

Let us think about the best way to implement this.

@skwde
Copy link
Author

skwde commented Feb 1, 2024

Perfect. Just found a related issue: #407

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

3 participants