Advertisement
Guest User

Untitled

a guest
Aug 11th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. {% for plugin, data in collectd.plugins.iteritems() %}
  2. collectd_config_{{ plugin }}:
  3. file.{{ data.state }}:
  4. - name: '/etc/collectd/collectd.conf.d/{{ plugin }}.conf'
  5. - watch_in:
  6. - service: collectd_service
  7. {% if data.state == 'managed' -%}
  8. - source: 'salt://collectd/files/collectd.conf.d/{{ plugin }}.conf.j2'
  9. - user: 'root'
  10. - group: 'root'
  11. - mode: 0644
  12. - template: jinja
  13. - data: {{ data }}
  14. {%- endif %}
  15. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement