Running on master

WARNING: Pillarstack is execute on master, therefore all of the salt call are execute on salt-master.


That means that if you want to call custom modules they have to be available on salt-master. Therefore keep in mind that the command salt '*' saltutil.sync_modules refresh=True runs only on salt-minion, for the master the required command is salt-run saltutil.sync_all.

Minions attributes

If it is required to access a minion attribute (like a mine), the only available solution is to use a salt runner:

{%- set minion_ips = __salt__.saltutil.runner('mine.get',
    tgt_type='glob') %}

MyWiki: Salt/GestionePillar/pillarstack (last edited 2017-07-13 11:11:33 by risca)