plugins: host specific
This commit is contained in:
parent
6934665b5a
commit
77c919f286
@ -13,6 +13,20 @@ include:
|
||||
- mode: 755
|
||||
{% endfor %}
|
||||
|
||||
# Node specific plugins
|
||||
{% 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 }}:
|
||||
file.symlink:
|
||||
- target: {{ munin_node.plugin_dir}}/{{ linked_file }}
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 755
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{{ munin_node.service }}:
|
||||
service.running:
|
||||
- watch:
|
||||
|
Loading…
Reference in New Issue
Block a user