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:
parent
dbf95139e3
commit
0af83482b6
@ -14,7 +14,7 @@ include:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
# Node specific plugins
|
# 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 %}
|
{% if salt['pillar.get']('munin_node:host_name') == hostname %}
|
||||||
{% for plugin_name, linked_file in plugin.items() %}
|
{% for plugin_name, linked_file in plugin.items() %}
|
||||||
/etc/munin/plugins/{{ plugin_name }}:
|
/etc/munin/plugins/{{ plugin_name }}:
|
||||||
|
Loading…
Reference in New Issue
Block a user