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

Add tmux-cssh as replacement for clusterssh #169

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Sep 12, 2024

I can't find if there is an extra config but that can be easily added if @tuupke / @meisterT has such a thing.

@vmcj vmcj linked an issue Sep 12, 2024 that may be closed by this pull request
@meisterT
Copy link
Member

Yeah, I had some bash aliases, basically:

alias ssh-jh='tmux-cssh domjudge-judgehost1 domjudge-judgehost2 ...'
alias ssh-servers='tmux-cssh domserver-primary domserver-backup ...'
alias ssh-all=...
alias ssh-analyst=...

We can also work on this onsite

@vmcj
Copy link
Member Author

vmcj commented Sep 12, 2024

Yeah, I had some bash aliases, basically:

alias ssh-jh='tmux-cssh domjudge-judgehost1 domjudge-judgehost2 ...'
alias ssh-servers='tmux-cssh domserver-primary domserver-backup ...'
alias ssh-all=...
alias ssh-analyst=...

We can also work on this onsite

I've added something like that now, went with shell scripts as that was easier.

src: tmux-cluster.sh.j2
dest: /usr/local/bin/{{ item.short }}
loop:
- short: ssh-js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer jh but if it is just me I can alias it 😀

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with any comment, so feel free to push the right naming afterwards. I already changed the js to jh as it does indeed make more sense.

For the group take a look at the hosts file where subgroups do matter (so the group domserver does contain everything in the group and the hosts from its children)

@vmcj vmcj merged commit b4e50c0 into DOMjudge:wfastana Sep 12, 2024
3 checks passed
@vmcj vmcj deleted the tmux-cssh branch September 12, 2024 20:15
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

Successfully merging this pull request may close these issues.

Convert clusterssh to tmux-cssh
3 participants