Skip to content

Instantly share code, notes, and snippets.

Created October 1, 2015 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/bd85c1a2390516d9b9d2 to your computer and use it in GitHub Desktop.
Save anonymous/bd85c1a2390516d9b9d2 to your computer and use it in GitHub Desktop.
ocal:
Data failed to compile:
----------
Rendering SLS "base:selections.resolver" failed: Jinja syntax error: unexpected "}", expected "]"; line 9
---
[...]
- group: root
- mode: '0644'
- source: salt://selections/resolver/files/resolv.conf
- template: jinja
- defaults:
{% if salt['grains.get]'('domain') == 'chi1' or salt['grains.get]'('domain') == 'aur1' %} <======================
nameservers: {{ salt['pillar.get']('resolver:nameservers', ['10.45.206.26','172.16.208.81']) }}
{% else %}
nameservers: {{ salt['pillar.get']('resolver:nameservers', ['172.16.208.81','10.45.206.26']) }}
{% endif %}
searchpaths: {{ salt['pillar.get']('resolver:searchpaths', [salt['grains.get']('domain'),]) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment