Browse Source

Add jinja macroses (exports) doc

Change-Id: Ifa3e4c42a05f47e0f9a73abf2d638cf730f5163e
changes/20/424520/2
Kirill Bespalov 2 years ago
parent
commit
8c86b7701b
1 changed files with 19 additions and 0 deletions
  1. 19
    0
      doc/source/app_def_guide.rst

+ 19
- 0
doc/source/app_def_guide.rst View File

@@ -60,3 +60,22 @@ Component repositories have common structure:
60 60
    :doc:`config/index`.
61 61
 
62 62
 .. _link: https://github.com/openstack?q=fuel-ccp-
63
+
64
+4. 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>`_

Loading…
Cancel
Save