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 Flintrock commands for remotely executing shell commands on cluster nodes #4

Closed
nchammas opened this issue Oct 5, 2015 · 1 comment
Milestone

Comments

@nchammas
Copy link
Owner

nchammas commented Oct 5, 2015

Users launching clusters often need to do their own additional setup to install packages they need or the like.

We should offer one, maybe two new Flintrock commands to make it easy for users to run commands remotely on all the nodes of their cluster. I'm imagining they will work like stripped-down, Flintrock-specific versions of pssh.

Here's a proposal for what those commands might look like:

./flintrock run-command my-cluster 'yum install -y package'
./flintrock run-script my-cluster /path/to/local/script.sh

For starters I want to keep these commands as simple as possible. Just run the shell command or script on each of the cluster nodes in parallel and report whether they all passed or not. In the event of a failure, I might not even want to show which specific node or nodes failed, at least for an initial cut of this feature.

Anything more, like getting the output back from each of the nodes, will be pushed off to later, or redirected to utility tools like pssh which are better suited to the task.

@nchammas nchammas added this to the 0.1 milestone Oct 5, 2015
nchammas added a commit that referenced this issue Oct 20, 2015
Partially addresses #4.
nchammas added a commit that referenced this issue Oct 20, 2015
Partially addresses #4.
@nchammas
Copy link
Owner Author

I'm closing this issue since we have run-command (#26) implemented. I'm going to punt on implementing run-script since equivalent functionality can be composed by the user using copy-files (#7) and run-command.

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