salt icon indicating copy to clipboard operation
salt copied to clipboard

Debug warning if rendering of pillars goes wrong in minion

Open majo83 opened this issue 13 years ago • 1 comments

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 %}

majo83 avatar Apr 21 '13 09:04 majo83

This has been fixed in git head and is a duplicate

thatch45 avatar Apr 22 '13 18:04 thatch45