blob: 38f30a0a898e06afddc77a1c265a11d3fcb26a50 [file] [log] [blame]
collectd_plugins:
{%- for service_name, service in pillar.items() %}
{%- if service.get('_support', {}).get('collectd', {}).get('enabled', False) %}
{%- set grains_fragment_file = service_name+'/meta/collectd.yml' %}
{% macro indent_grains_dict() %}{% include grains_fragment_file %}{% endmacro %}
{{- indent_grains_dict()|indent(2, true) }}
{%- endif %}
{%- endfor %}