patternMinor
Where are dunder dictionaries stored in salt?
Viewed 0 times
storedarewheresaltdunderdictionaries
Problem
I am new to Salt-Stack wanted to know where are all the dunder dictionaries stored?
For example
For example
__salt__, __opts__, __grains__, __beacons__).Solution
There are currently 5 dunder dictionaries. They are available at runtime and generally not stored statically.
You generally don't need to use them, unless you are developing Salt or writing custom modules, runners, returners, or external pillars.
__opts__ - Master or Minion configuration options; stored in configuration files of master and minion, collected at startup__salt__ - Execution module functions (i.e. __salt__'test.echo'); from built-in and custom execution modules stored in _modules/__grains__ - Grains (i.e. __grains__['os']); collected from minions, dynamically generated, or stored in minion config or /etc/salt/grains__pillar__ - Pillar data (i.e. __pillar__['foo']); collected from the pillar__context__ - Context defined in state modules and execution modulesYou generally don't need to use them, unless you are developing Salt or writing custom modules, runners, returners, or external pillars.
Context
StackExchange DevOps Q#4645, answer score: 3
Revisions (0)
No revisions yet.