On Tue, Aug 30, 2016 at 9:14 AM, Rémy Dernat <
rem...@gmail.com> wrote:
> However, I also need to access a pillar in another orchestrator, and store a
> pillar value in a variable to use it later in my orchestrator. Any idea on
> this part ?
If you need to access the same Pillar value(s) from two separate
Orchestrate files, I would suggest putting the logic to fetch that
data into it's own file and then import that file via Jinja in both
Orchestrate files.
Or if you need to pass the Pillar data from the Reactor to Orchestrate
or from one Orchestrate to another, then your best bet is to use the
`pillar` kwarg when you invoke the second step.
> I am quite surprise that it is so difficult to access the pillars values
> when you try to access it from other things than a state or a python script.
Perhaps I misunderstand your use-case. It is very easy to access
Pillar values by simply calling either an execution module or a runner
module. Since Pillar data is minion-specific, and thus
location-dependent, the way you fetch that data depends on where the
script is being run. Accessing Pillar from a State or Python script is
done by calling one of those modules, and accessing Pillar data from
any other place is also done via calling one of those modules