From 0af83482b68ff7d9f7c9ea4fb59a8ca7d1215b26 Mon Sep 17 00:00:00 2001 From: Wolodja Wentland Date: Wed, 2 Dec 2015 14:05:38 +0100 Subject: [PATCH] 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 --- munin/node/plugins.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/munin/node/plugins.sls b/munin/node/plugins.sls index 4167ade..effc208 100644 --- a/munin/node/plugins.sls +++ b/munin/node/plugins.sls @@ -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 }}: