-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
module.run documentation issues #43130
Comments
@boltronics I don't think the new module.run is set by default. If i recall correctly to use the new syntax you would need to add an additional argument to your config. Is this accurate from your setup? I completely agree we should add some examples to these docs for the new syntax but i don't think we want to do a clear removal of the old syntax because its still applicable i believe. |
@Ch3LL That is correct. I have added the documented I didn't mean to imply that the old syntax should be removed. I just think it's not very clear at a glance which examples are using which syntax, and it would be more readable if the two different approaches were split out under separate sub-headings or some such. In case it wasn't clear, both are currently documented on that page to some degree. |
This should be closed I guess. |
The examples are fixed, but it's still not as clear as it could/should be IMO. For example, the first four examples use the new syntax. Then the documentation switches to giving an example of the old way. Initially the reader would think it's just a quick one-off example of something they don't really need to care about, but then it goes on for another five additional examples. At this point, the docs read "Another option is to use the new version of module.run" and give one final example using the new format again. So it comes off as unclear which the user should use. On one hand the new format is introduced first, but then the old format is discussed so much that it could easily give rise to some doubts. The fact that the new format requires a configuration file change to work doesn't help matters. Additionally the At least the information is all there now and correct, but without the readability and clarity problems being addressed, I think this probably shouldn't have been closed so quickly. |
I agree with boltronics. The naming of the "use_superseded" switch is weird enough but should be mentioned right on the top, then there should be a section for new format and finally a section for old format. |
I just wasted my morning because of the lack of clarity in the documentation as @boltronics has pointed out. Please fix this. |
I struggled with this for hours on version
However, the "new style" did not work for me on version
Did we ever make the switch to using the new style only in version If the change has been made, is there some possibility that upgrading the minion from Right now I'm wondering if I really need to modify the configuration of every single minion or if it's just easier to use the legacy style instead of the new style. |
module.run documentation has been updated. as well as |
Description of Issue/Question
According to https://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html#module-salt.states.module the new
module.run
syntax is:This example is incorrect. It should read:
All the other examples on that page also have the same error, which I found quite confusing.
That entire section doesn't read very well, as the old and new syntax formats are mixed together. It would be clearer if it was broken into sections with separate headings such as "The new way" and "The old way (supported until Oxygen)". It would also allow anyone new to
module.run
to simply skip the section on the old format.Finally, I'd like to see a more complicated example. eg.
I tried experimenting with a YAML list for
arg
, but it didn't work. This might save someone time.Setup
N/A
Steps to Reproduce Issue
N/A
Versions Report
Applicable to the documentation in
2017.7.0+
.The text was updated successfully, but these errors were encountered: