Define munin_node_specific_plugins default value

This allows the user to leave munin_node_specific_plugins undefined in
their pillar as the state no longer throws an error in that case. This
fixes #13
This commit is contained in:
Wolodja Wentland 2015-12-02 14:05:38 +01:00
parent dbf95139e3
commit 0af83482b6

View File

@ -14,7 +14,7 @@ include:
{% endfor %}
# Node specific plugins
{% for hostname, plugin in salt['pillar.get']('munin_node_specific_plugins').items() %}
{% for hostname, plugin in salt['pillar.get']('munin_node_specific_plugins', {}).items() %}
{% if salt['pillar.get']('munin_node:host_name') == hostname %}
{% for plugin_name, linked_file in plugin.items() %}
/etc/munin/plugins/{{ plugin_name }}: