summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKirill Bespalov <kbespalov@mirantis.com>2017-01-24 11:56:34 +0300
committerKirill Bespalov <kbespalov@mirantis.com>2017-01-24 09:02:42 +0000
commit8c86b7701b9ce49be894f54751c376699305a552 (patch)
tree1c2d68588ea3f07bb7369b7454492de82839f4bf /doc
parentcbfd8bf89b046404bd1b4fe9ee9034430d2864d7 (diff)
Add jinja macroses (exports) doc
Notes
Notes (review): Verified+1: Mirantis CCP CI <mirantis-fuel-ccp-ci@mirantis.com> Code-Review+2: Proskurin Kirill <kproskurin@mirantis.com> Code-Review+2: Andrey Pavlov <apavlov@mirantis.com> Workflow+1: Andrey Pavlov <apavlov@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 08 Feb 2017 09:44:44 +0000 Reviewed-on: https://review.openstack.org/424520 Project: openstack/fuel-ccp Branch: refs/heads/master
Diffstat (limited to 'doc')
-rw-r--r--doc/source/app_def_guide.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/source/app_def_guide.rst b/doc/source/app_def_guide.rst
index 33b75ed..6b53a00 100644
--- a/doc/source/app_def_guide.rst
+++ b/doc/source/app_def_guide.rst
@@ -60,3 +60,22 @@ Component repositories have common structure:
60 :doc:`config/index`. 60 :doc:`config/index`.
61 61
62.. _link: https://github.com/openstack?q=fuel-ccp- 62.. _link: https://github.com/openstack?q=fuel-ccp-
63
644. Shared configurations templates
65----------------------------------
66 You can export and share across all `fuel-ccp-x` repositories the most common
67 parts of configs which are needed to use your service. In order to do this you
68 should locate a jinja macros with a config template in ``./exports/`` directory:
69
70 ::
71
72 ./exports/your_jinja_template.j2
73
74 and then use it in a config file of any other repository:
75
76 ::
77
78 file:nova.conf.j2
79 {{ your_jinja_template.your_macros() }}
80
81 Well known shared template is `oslo_messaging <https://github.com/openstack/fuel-ccp-rabbitmq/blob/master/exports/oslo_messaging.j2>`_ \ No newline at end of file