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
[CentOS 6] mapping
test not supported, master config cannot be generated
#193
Comments
Until this is resolved, the last good version that works on CentOS 6 is a33937d |
Hmm, could we create a flag to include a different file if the os grain is centos 6? I can't remember if it would still get parsed in that situation. Looks like the latest available from EPEL is also 2.26: https://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/python-jinja2-26.html, and I don't think that has mapping support either. |
Seriously, no one will like this hack, but at least it renders:
|
(I got this hack in a local git-clone of the formula if anyone is interested) |
The mapping configs also affect minion runs.
|
@0xf10e Would you be interested in submitting a PR? The missing jinja mapping logic now breaks RHEL6 minions and masters. |
@mchugh19 Oh, this is still open? Let me see if my diff still applies... |
!! Not tested with an actual !! !! configured `ext_pillar` yet !! - jinja on RHEL/CentOS 6 has no 'mapping' test (see salt-formula issue saltstack-formulas#193) - {% do ... %} allows no assignment, only function calls - of course, `type(foo) is dict` doesn't work because it's no jinja test - maybe `.isinstance()` would be nicer/more reliable
|
As mentions in #298: Only tested basic functionality on CentOS 6. |
!! Not tested with an actual !! !! configured `ext_pillar` yet !! - jinja on RHEL/CentOS 6 has no 'mapping' test (see salt-formula issue saltstack-formulas#193) - {% do ... %} allows no assignment, only function calls - of course, `type(foo) is dict` doesn't work because it's no jinja test - maybe `.isinstance()` would be nicer/more reliable
If I look in the changelog file of jinja2 version 2.6 has mapping: and the salt repo for centos 6 py27, already ships with jinja2 2.8.1 I don't think this is necessary any more and we can opt for a cleaner map.jinja
which will in turn keep everything nice and separated. which is easier to maintain and contribute. |
Simplify map.jinja revert deep_merge solution from #193
Unfortunately, since CentOS 6 only ships with Jinja2 2.2.1, the
mapping
test is not supported. Looking through the documentation, I don't see anything else equivalent to it (bothiterable
andsequence
test true for dicts and lists), so I'm not sure how to maintian functionality without that test.Tapping @Sjd-Risca, just in case they have some idea
The text was updated successfully, but these errors were encountered: