0

I'm looking for a way to select the external pillar depending on saltenv or pillarenv variable.

From saltstack documentation, ext_pillar does not support the same syntax as pillar_roots (https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-roots and https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-roots)

Is there a way to do this ?

1 Answer 1

0

Yes, as the documentation states, use __env__ keyword. It makes most sense in conjunction with git where branches and tags are representing pillarenvs

ext_pillar:
  - git:
    - __env__ https://gitserver/git-pillar.git:
      - root: pillar

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .