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.

10 lines
528B

  1. {%- set service_grains = {'sphinx': {'doc': {}}} %}
  2. {%- for service_name, service in pillar.items() %}
  3. {%- if service.get('_support', {}).get('sphinx', {}).get('enabled', False) %}
  4. {%- set grains_fragment_file = service_name+'/meta/sphinx.yml' %}
  5. {%- macro load_grains_file() %}{% include grains_fragment_file %}{% endmacro %}
  6. {%- set grains_yaml = load_grains_file()|load_yaml %}
  7. {%- set _dummy = service_grains.sphinx.doc.update({ service_name: grains_yaml.doc }) %}
  8. {%- endif %}
  9. {%- endfor %}
  10. {{ service_grains|yaml(False) }}