[FEATURE REQUEST] Expose invocation to minions #67450
nf-brentsaner
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
There is no way to determine within a state if it was invoked explicitly or via a highstate.
There is also no way for a minion to determine the JID of its current execution.
Describe the solution you'd like
I wish there were a way to determine the state application invocation from a minion.
Perhaps as there is the e.g.
salt
,opts
,grains
variables/dictionaries available to SLS files and templates, there could be a new one created:runtime
.This would contain the master-invoked function and args (which is different from e.g.
salt['saltutil.is_running']
,salt['saltutil.running']
, andsalt['state.running']
as those do not seem to report how the current job run on a minion was invoked/with what func/args, only for specific states).This would also contain the JID of the run for easy cross-referencing by an operator with the master.
Describe alternatives you've considered
There are no alternatives that expose this information.
Additional context
N/A
Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.
Beta Was this translation helpful? Give feedback.
All reactions