Created
April 30, 2015 19:50
-
-
Save anonymous/a910228a8bd5f21f6527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map.jinja: | |
{% set syslog-ng = salt['grains.filter_by']({ | |
'RedHat': { | |
'package': 'syslog-ng', | |
'service': 'syslog-ng', | |
'syslog_ng_config': '/etc/syslog-ng/syslog-ng.conf', | |
'syslog_ng_config_src': 'salt://syslog-ng/files/syslog-ng.conf', | |
}, | |
}, merge=salt['pillar.get']('syslog-ng:lookup')) %} | |
ERROR: | |
[CRITICAL] Rendering SLS 'base:services.syslog-ng.config' failed: Jinja syntax error: expected token 'assign', got '-' | |
/var/cache/salt/minion/files/base/services/syslog-ng/map.jinja(1): | |
--- | |
{% set syslog-ng = salt['grains.filter_by']({ <====================== | |
'RedHat': { | |
'package': 'syslog-ng', | |
'service': 'syslog-ng', | |
'syslog_ng_config': '/etc/syslog-ng/syslog-ng.conf', | |
'syslog_ng_config_src': 'salt://syslog-ng/files/syslog-ng.conf', | |
[...] | |
--- | |
[CRITICAL] Rendering SLS 'base:services.syslog-ng.init' failed: Jinja syntax error: expected token 'block_end', got '-'; line 1 | |
--- | |
{% from "services/syslog-ng/map.jinja" import syslog-ng with context %} <====================== | |
syslog-ng: | |
pkg.installed: | |
- name: {{ syslog-ng.package }} | |
[...] | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment