-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Salt-formula don't render pillar from imported yaml map file #508
Comments
There is an issue with the use of Jinja2 3.0 saltstack/salt#60188. |
Thanks @baby-gnu that helped a lot. We've ended up downgrading jinja2 after the salt bootstrap in vagrant and terraform provisionner: |
I think we could close this bug report, right? |
I have a similar import_yaml issue on opensuse leap 15.4 minion running the same salt 3002.6 version as @schirka. I tried downgrading jinja2==2.11.3 and jinja2==2.8.1 matching with jinja2 version from its master but could not get passed the error. master:
minion:
map.jinja:
state.apply error:
I have tested downgrading Jinja2 version starting from 3.0.3 down to 2.8.1 without success. Here is a list from opensuse minion
I have tried to match PyYAML version 3.11 on the minion too without success. Besides Jinja2 and PyYAML package what else should I try to overcome this error? Any suggestion is greatly appreciated. Thanks in advance. |
I figured it out. Adding
|
Your setup
Formula commit hash / release tag
1.8.5
Versions reports (master & minion)
salt-master:
Salt-minion
Pillar / config used
/etc/salt/master
Bug details
Describe the bug
salt['pillar.get'] is not rendered by import_yaml
map.jinja(line 6,7.8)
Steps to reproduce the bug
Expected behaviour
Expect the formula to render
Attempts to fix the bug
For salt['pillar.get'] to be rendered by import_yaml, it needs with context
map.jinja(line 6,7.8)
Additional context
salt-formula is now rendering properly.
The text was updated successfully, but these errors were encountered: