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
381B

  1. 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. {{ service_name }}:
  6. {%- macro indent_grains_dict() %}{% include grains_fragment_file %}{% endmacro %}
  7. {{ indent_grains_dict()|indent(4, true) }}
  8. {%- endif %}
  9. {%- endfor %}