-
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
document "magic" objects such as __salt__ #1075
Comments
I agree, thanks! |
It was dcolish's idea, but it does need to be done. |
There's scattered documentation nowadays but I think this could still use some focus. Adding to the documentation sprint focus... Refs #12446. |
Quick checklist:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
This issue is two-fold. We need to document the special objects available in state files for users (such as
salt
,grains
, etc) and the ones available inside of modules or state python modules such as__salt__
,_opts_
,_env_
, etc.The ability to reference grains via
grains['os']
or invoke salt modules viasalt['user.info]('foouser')
in a state file is very powerful and should be well documented.The text was updated successfully, but these errors were encountered: