Add jinja macroses (exports) doc

Change-Id: Ifa3e4c42a05f47e0f9a73abf2d638cf730f5163e
This commit is contained in:
Kirill Bespalov 2017-01-24 11:56:34 +03:00
parent cbfd8bf89b
commit 8c86b7701b
1 changed files with 19 additions and 0 deletions

View File

@ -60,3 +60,22 @@ Component repositories have common structure:
:doc:`config/index`.
.. _link: https://github.com/openstack?q=fuel-ccp-
4. Shared configurations templates
----------------------------------
You can export and share across all `fuel-ccp-x` repositories the most common
parts of configs which are needed to use your service. In order to do this you
should locate a jinja macros with a config template in ``./exports/`` directory:
::
./exports/your_jinja_template.j2
and then use it in a config file of any other repository:
::
file:nova.conf.j2
{{ your_jinja_template.your_macros() }}
Well known shared template is `oslo_messaging <https://github.com/openstack/fuel-ccp-rabbitmq/blob/master/exports/oslo_messaging.j2>`_