New version of salt-formula from Saltstack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. {%- if pillar.salt is defined %}
  2. agent:
  3. input:
  4. {%- if pillar.salt.get('master', {}).get('enabled', False) or pillar.salt.get('minion', {}).get('enabled', False) %}
  5. procstat:
  6. process:
  7. {%- if pillar.salt.get('master', {}).get('enabled', False) %}
  8. salt-master:
  9. pattern: salt-master
  10. {%- endif %}
  11. {%- if pillar.salt.get('minion', {}).get('enabled', False) %}
  12. salt-minion:
  13. pattern: salt-minion
  14. {%- endif %}
  15. {%- endif %}
  16. {%- endif %}