successful munin-node.conf rendered from pillar data, based on default

config
This commit is contained in:
Kenny Do
2014-01-04 23:49:40 -08:00
parent f0d97575e1
commit 7293f8bb12
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,14 @@
{% set config = pillar.get('munin_node', {}) -%}
#
# This config file is managed by salt.
#
{%- for name, value in config.iteritems() %}
{%- if value is string or value is number%}
{{ name }} {{ value }}
{%- else %}
{%- for item in value %}
{{ name }} {{ item }}
{%- endfor %}
{%- endif %}
{%- endfor %}

0
munin/files/munin.conf Normal file
View File