Skip to content

Instantly share code, notes, and snippets.

Created June 30, 2016 17:15
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/5ae225d92d659cd0fb1c3c783b073cc0 to your computer and use it in GitHub Desktop.
Save anonymous/5ae225d92d659cd0fb1c3c783b073cc0 to your computer and use it in GitHub Desktop.
- Rendering SLS 'base:icinga2' failed: Jinja error: 'python2_bin'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/templates.py", line 366, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "<template>", line 25, in top-level template code
File "/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/mine.py", line 48, in get
ssh = salt.client.ssh.SSH(opts)
File "/usr/lib/python2.7/site-packages/salt/client/ssh/__init__.py", line 288, in __init__
python2_bin=self.opts['python2_bin'],
KeyError: 'python2_bin'
; line 25
---
[...]
/etc/icinga2/conf.d/hosts/:
file.directory
# Get all machines instances on saltmaster
{% for host, hostinfo in salt['mine.get']('*','network.interfaces').items() -%} <======================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment