saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:
https://repo.saltproject.io/
Apache License 2.0
13.98k stars 5.47k forks source link

[DOCS] Witing grains guide does not mention the grains argument #66628

Open OrangeDog opened 3 weeks ago

OrangeDog commented 3 weeks ago

Description The documentation about writing custom grains does not mention how the existing grains are passed around.

Suggested Fix Include details about accessing core grains in custom grains. e.g.: https://stackoverflow.com/a/78601931/476716

Type of documentation Topic guide.

Location or format of documentation https://docs.saltproject.io/en/latest/topics/grains/#writing-grains