Pillar Roster¶
Load the list of devices from the Pillar.
Simply configure the roster
option to point to this module, while making
sure that the data is available. As the Pillar is data associated with a
specific Minion ID, you may need to ensure that the Pillar is correctly
associated with the Minion configured (default *
), under the exact key
required (default devices
). To adjust these options, you can provide the
following under the roster_pillar
option in the Master configuration:
- minion_id:
*
- The ID of the Minion to compile the data for. Default:
*
(any Minion). - pillar_key:
devices
- The Pillar field to pull the list of devices from. Default:
devices
. - saltenv:
base
- The Salt environment to use when compiling the Pillar data.
- pillarenv
- The Pillar environment to use when compiling the Pillar data.
Configuration example:
roster: pillar
roster_pillar:
minion_id: sproxy
pillar_key: minions
With the following configuration, when executing
salt-run pillar.show_pillar sproxy
you should have under minions
the
list of devices / Minions you want to manage.
Hint
The Pillar data can either be provided as files, or using one or more External Pillars. Check out https://docs.saltstack.com/en/latest/ref/pillar/all/index.html for the complete list of available Pillar modules you can use.