From 8c86b7701b9ce49be894f54751c376699305a552 Mon Sep 17 00:00:00 2001 From: Kirill Bespalov Date: Tue, 24 Jan 2017 11:56:34 +0300 Subject: [PATCH] Add jinja macroses (exports) doc Change-Id: Ifa3e4c42a05f47e0f9a73abf2d638cf730f5163e --- doc/source/app_def_guide.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/source/app_def_guide.rst b/doc/source/app_def_guide.rst index 33b75ed4..6b53a006 100644 --- a/doc/source/app_def_guide.rst +++ b/doc/source/app_def_guide.rst @@ -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 `_ \ No newline at end of file