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 consul exec with a lock/semaphor #1003

Closed
sethvargo opened this issue Jun 4, 2015 · 4 comments
Closed

Support consul exec with a lock/semaphor #1003

sethvargo opened this issue Jun 4, 2015 · 4 comments
Labels
theme/cli Flags and documentation for the CLI interface type/enhancement Proposed improvement or new feature

Comments

@sethvargo
Copy link
Contributor

The consul lock command is great (and can be used in tandem with consul exec), but it would be great if consul exec accepted a -n parameter and handled all the locking automatically:

$ consul exec -n=3 -service='webapp' ./deploy.sh

This would be really great for rolling deploys or even Kernel upgrades:

$ consul exec -n=10 sudo reboot now

/cc @armon @ryanuber @phinze

@sethvargo sethvargo added the type/enhancement Proposed improvement or new feature label Jun 4, 2015
@slackpad
Copy link
Contributor

slackpad commented Jun 8, 2015

I like this! Seems like a nice UI improvement, and it would take care of creating a temporary lock name / guid kind of thing for each invocation.

@armon
Copy link
Member

armon commented Jun 9, 2015

Agreed!

@houtmanj
Copy link

I would like this as well for the same reasons as sethvargo.
Are there any plans to include this in an upcoming release?

@slackpad slackpad added the theme/cli Flags and documentation for the CLI interface label May 25, 2017
@sethvargo
Copy link
Contributor Author

Closing due to inactivity. I'm trying to get the list of issues I've submitted under control, and it doesn't look like there's interest in building this functionality at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/cli Flags and documentation for the CLI interface type/enhancement Proposed improvement or new feature
Projects
None yet
Development

No branches or pull requests

4 participants