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
database_conn: | |
{% for server, addrs in salt['mine.get']('nodetype:infrastructure', 'network.ip_addrs', expr_form='grain').items() %} | |
host: {{ addrs[0] }} | |
{% endfor %} | |
port: 3306 | |
username: test | |
password: test | |
database: testdb |
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
2015-05-10 05:07:23,503 [salt.pillar ][CRITICAL] Rendering SLS 'dev-pillars' failed, render error: | |
Jinja error: 'master_uri' | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 280, in render_jinja_tmpl | |
output = template.render(**decoded_context) | |
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render | |
return self.environment.handle_exception(exc_info, True) | |
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "<template>", line 2, in top-level template code |