Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% for plugin, data in collectd.plugins.iteritems() %}
- collectd_config_{{ plugin }}:
- file.{{ data.state }}:
- - name: '/etc/collectd/collectd.conf.d/{{ plugin }}.conf'
- - watch_in:
- - service: collectd_service
- {% if data.state == 'managed' -%}
- - source: 'salt://collectd/files/collectd.conf.d/{{ plugin }}.conf.j2'
- - user: 'root'
- - group: 'root'
- - mode: 0644
- - template: jinja
- - data: {{ data }}
- {%- endif %}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement