gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.69k stars 1.77k forks source link

Enable tsh to execute server commands for multiple hostnames #25706

Open pschisa opened 1 year ago

pschisa commented 1 year ago

What would you like Teleport to do? Currently, commands across multiple Teleport servers can only be executed with tsh ssh when using a label or unique set or labels. The request is for tsh to accept multiple hostnames for command execution similar to pssh -p 5 -a 'echo bla' fqdn1 fqdn2 f1dn3

What problem does this solve? Users may need to run a command across several servers that are not defined by a unique set of labels

If a workaround exists, please include it. Define a unique set of labels and use tsh ssh with labels

Local scripting. Example: tsh ls --format=json | jq -r '.[].spec.hostname' | parallel "tsh ssh -l user {} hostname"

shreychen commented 10 months ago

+1