20 lines
461 B
Plaintext
20 lines
461 B
Plaintext
|
{% from "munin/map.jinja" import munin_node with context %}
|
||
|
|
||
|
include:
|
||
|
- munin.node
|
||
|
|
||
|
# Enable common plugins
|
||
|
{% for plugin, linked_file in pillar.get('munin_node_common_plugins', {}).items() %}
|
||
|
/etc/munin/plugins/{{ plugin }}:
|
||
|
file.symlink:
|
||
|
- target: {{ munin_node.plugin_dir}}/{{ linked_file }}
|
||
|
- user: root
|
||
|
- group: root
|
||
|
- mode: 755
|
||
|
{% endfor %}
|
||
|
|
||
|
{{ munin_node.service }}:
|
||
|
service.running:
|
||
|
- watch:
|
||
|
- file: /etc/munin/plugins/*
|