[FEATURE REQUEST] Provide master option to prefix state IDs with their sls
variable
#67551
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I received an internal request at our org to prefix state IDs (which currently are short descriptive phrases of the function being performed) with the dot-formatted SLS path (
{{ sls }}
) or the path syntax ({{ slspath }}
) so the SLS file they exist in can be more easily identifiable by other maintainers.Rather than going through and adding something like "
{{ sls }} Do Something for Foo:
", I think it would be great if the master had an output option to automatically prepend or append this string to state IDs when rendering output/results of jobs.It seems that it already does this internally in some contexts anyways?
Describe the solution you'd like
A state would be defined as, e.g.:
in
<root>/some/sls/path/init.sls
But there would be an optional (disabled by default) option in the master config to report output as:
Or, alternatively,
Describe alternatives you've considered
Going through every single one of our states and adding it.
Hoping and praying that others remember to do it as well for new states.
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