You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to use pillar values from /srv/pillar with the orchestrate runner. However the pillar values passed in on command line as in the below example are available. Pillar values provided by the ext_pillar consul are also available. Is there some kind of (un?)documented way of distributing pillars to the master?
Setup
Run with: salt-run --out=json state.orchestrate orch.application.upgrade pillar='{"data":{"organization":"company","cluster":"demo","version":"1.0"}}'
@rbjorklin I think there are two issues going on here.
First {{ pillar['managers'][pillar['data']['organization']]['hostname'] }} will cause some issues. I'm guessing what you want is this: {{ pillar['managers']['company']['hostname' }} maybe?If you want to call two pillars you would have to seperate them out.
Also I think you might be running into this issue: #33647 which caused issues with pillars on the command line overriding pillar in /srv/pillar. This has been fixed in 2016.3.1. Once you fix that pillar is it working ?
@Ch3LL I use nested pillar calls in several other states so unless there is something different with orchestration that should be fine I think.
It does indeed look like I'm running into #33647 however upgrading to 2016.3.1 seems to make me run into #29028 which is actually a lot worse in my case.
EDIT: Just upgraded to 2016.3.1 and it seems to work, so far #29028 hasn't resurfaced.
Looks like #33647 was my issue. Distributing pillars to the master is done by appending _master to the minion name of the minion running on the master (if you have one). Closing this issue.
Description of Issue/Question
It is not possible to use pillar values from
/srv/pillar
with the orchestrate runner. However the pillar values passed in on command line as in the below example are available. Pillar values provided by the ext_pillar consul are also available. Is there some kind of (un?)documented way of distributing pillars to the master?Setup
Run with:
salt-run --out=json state.orchestrate orch.application.upgrade pillar='{"data":{"organization":"company","cluster":"demo","version":"1.0"}}'
Running the above results in:
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
Versions Report
The text was updated successfully, but these errors were encountered: