salt
salt copied to clipboard
Debug warning if rendering of pillars goes wrong in minion
Hey,
in case of an error in the rendering of the pillar states on a minion, no error message is printed on startup of the . One just sees that this very minion somehow returns no data when queried by
# salt 'this.very.host' pillar.data
A eendering error within a pillar would occur e.g. in the following case (also cmp. https://groups.google.com/forum/#!topic/salt-users/5MywVXkUmI4 ) if the grain role is not defined.
# example.sls
{% if grain['fqdn'] = "webserver.example.com" or grains['role'] == "management-server" %}
{{ "management.example.com." if grains['role'] == 'management' }}mysql.user: root
{{ "management.example.com." if grains['role'] == 'management' }}mysql.pass: notreal
{% endif %}
This has been fixed in git head and is a duplicate