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.

meta.yml 860B

12345678910111213141516171819202122232425262728293031
  1. graph:
  2. {%- if pillar.get('salt', {}).minion is defined %}
  3. {%- from "salt/map.jinja" import minion with context %}
  4. - host: {{ grains.id }}
  5. service: salt.minion
  6. type: software-config
  7. relations:
  8. {%- if minion.master is defined %}
  9. - service: salt-master
  10. {%- if minion.master.host in ['127.0.0.1', 'localhost'] %}
  11. host: {{ grains.id }}
  12. {%- else %}
  13. host_from_target: {{ minion.master.host }}
  14. {%- endif %}
  15. direction: source
  16. type: tcp-0mq
  17. {%- endif %}
  18. {%- endif %}
  19. {%- if pillar.get('salt', {}).master is defined %}
  20. {%- from "salt/map.jinja" import master with context %}
  21. - host: {{ grains.id }}
  22. service: salt.master
  23. type: software-config
  24. relations:
  25. {%- if master.pillar.engine == 'reclass' %}
  26. - host: {{ grains.id }}
  27. service: reclass.storage
  28. direction: source
  29. type: local-file
  30. {%- endif %}
  31. {%- endif %}