-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Custom actions stanza #15713
Comments
Hi @davidlublink! This is interesting because it's kind of like a scoped-down |
Not just scoped-down, but predefined. The real selling point here is that since it's predefined, an operator can trigger an action without worrying about typing the command right. For ACL, I would suggest a new ACL 'alloc-exec-preconfigured' that would allow you to execute any preconfigured action, but not necessarily run an arbitrary action. With this ACL, and not alloc-exec, running the command would not allow any changes to the command itself, but would allow interacting with the output ( if it launchs a mysql terminal, I can run commands on it, but if I exit the mysql client, the connection to the allocation ends. ) If you have the ACL alloc-exec, you would be able to not only run the preconfigured commands, but possibly modify ( one time ) the parameters run, so it becomes like alloc-exec with a default command. So alloc-exec would imply alloc-exec-preconfigured. |
Highly recommend adding this as a feature, we have a few Django sites where we would love to have the ability to be able to run preconfigured actions ondemand, actions triggerable from the nomad gui and via api calls, such as clearing a cache or performing a backup of a DB /media before a deployment. |
Hey all, just FYI that we're planning to do this hopefully as part of the 1.7 release. Thanks for the suggestion! |
I looked at the videos and examples in #16249, it looks great! Looking forward to trying it out. Great work! |
Should this be closed now? |
When I go into the nomad web interface I have the options 'stop' and 'restart alloc', and 'exec'. I propose a new stanza that will allow adding arbitrary/custom buttons to any job/group/task
The text was updated successfully, but these errors were encountered: