|
- sphinx_doc:
- {%- for service_name, service in pillar.items() %}
- {%- if service.get('_support', {}).get('sphinx', {}).get('enabled', False) %}
- {%- set grains_fragment_file = service_name+'/meta/sphinx.yml' %}
- {{ service_name }}:
- {%- macro indent_grains_dict() %}{% include grains_fragment_file %}{% endmacro %}
- {{ indent_grains_dict()|indent(4, true) }}
- {%- endif %}
- {%- endfor %}
|