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

Support for command scopes #55

Open
vladimirvivien opened this issue Mar 26, 2020 · 0 comments
Open

Support for command scopes #55

vladimirvivien opened this issue Mar 26, 2020 · 0 comments

Comments

@vladimirvivien
Copy link
Contributor

By default, all commands listed in a crash-diag is executed on each machine specified in the FROM list. This issue is to introduce command scope to specify which machine gets the command.

For instance,

FROM hosts:"host0.local host1.local"
CAPTURE cmd:"command -param0 -param1" scope:"all"
COPY path:"/var/logs/log.txt" scope:"host0.local"
ENV JUMP="12.34.56.78"
RUN cmd:"ssh -i $HOME/.ssh/key_rsa -J user@$JUMP user@$FROM_HOST uptime" scope:"local"

Scopes

  • All - means the command will be executed on all machines in the FROM list
  • Host List - scope can be a list of machines where command will be executed
  • Local - a local scope means the command will be executed once using the local machine (most likely using a shell runtime, see Support for multiple execution runtimes #54)
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

1 participant