Saltstack Official Linux Formula
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.

21 lines
760B

  1. {%- from "linux/map.jinja" import system with context -%}
  2. orchestrate:
  3. system:
  4. priority: 30
  5. network:
  6. priority: 40
  7. storage:
  8. priority: 50
  9. grain:
  10. sphinx:
  11. {%- set service_grains = {'sphinx': {'doc': {}}} %}
  12. {%- for service_name, service in pillar.items() %}
  13. {%- if service.get('_support', {}).get('sphinx', {}).get('enabled', False) %}
  14. {%- set grains_fragment_file = service_name+'/meta/sphinx.yml' %}
  15. {%- macro load_grains_file() %}{% include grains_fragment_file %}{% endmacro %}
  16. {%- set grains_yaml = load_grains_file()|load_yaml %}
  17. {%- do service_grains.sphinx.doc.update({ service_name: grains_yaml.doc }) %}
  18. {%- endif %}
  19. {%- endfor %}
  20. {{ service_grains|yaml(False)|indent(4) }}