-
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
salt.minion fails with syntax error: no test named 'mapping' RHEL6/Jinja 2.2.1 #170
Comments
It looks like I'm not the first to run into this: saltstack/salt#11267 Maybe a "This formula requires jinja2 2.6.0 or later" notice could be put at the top of this formula's README.rst file so others don't go down this rabbit hole? |
@bradthurber yes, good call, could you send a pull to the readme with that notice. Also i recommend trying to add jinja 2.6 your deployment, not sure what other features are missing. |
On centos 6, you can install python-jinja2-26 from the EPEL repo. However, the problem is then figuring out how to make salt use python-jinja2-26 instead of python-jinja2. Does anyone know how to do this? |
@pgporada You'd have to repackage salt and make that the requirement instead of python-jinja2, I highly recommend against that. Can you not simply host the python-jinja2 package internally? |
Gravyboat, I'm not exactly sure how to do that. Would that be hosting my own yum repository? |
@pgporada Yep! Or if you wanted you could create a local yum repo: https://wiki.centos.org/HowTos/CreateLocalRepos obviously this isn't as clean or as flexible as a full blown repo, but it's easier to set up. |
Or we could just take that mapping test out of the formula... |
@iggy I figured people didn't want to do that otherwise they would have just forked and done it themselves. |
That's what I did. I just never got around to pushing it back upstream. Guess I've got one more thing I need to do before I move on. |
Confirmed salt.minion working now with latest version of formula and Jinja 2.2.1 |
Thanks for confirming @bradthurber! |
BTW. This is what I did for RedHat 6 etc to update jinja2:
Note that this changes the use of jinja2 system wide. |
It looks like mapping test requires Jinja2 v2.6 or higher and I'm on 2.2.1 - which is the best RHEL 6 provides.
The text was updated successfully, but these errors were encountered: