You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/concepts/configuration.rst
+7-8
Original file line number
Diff line number
Diff line change
@@ -240,7 +240,7 @@ Roles and configuration scopes
240
240
******************************
241
241
242
242
As the most of configuration options, roles and their configurations can be defined at :ref:`different levels <configuration_scopes>`.
243
-
Given that the ``roles`` option has the ``array`` type and ``roles_cfg`` has the ``map`` type, different rules are used when applying the configuration:
243
+
Given that the ``roles`` option has the ``array`` type and ``roles_cfg`` has the ``map`` type, there are some specifics when applying the configuration:
244
244
245
245
- For ``roles``, an instance's role takes precedence over roles defined at another levels.
246
246
In the example below, ``instance001`` has only ``role3``:
@@ -275,23 +275,22 @@ Given that the ``roles`` option has the ``array`` type and ``roles_cfg`` has the
275
275
role1:
276
276
greeting: 'Hi'
277
277
278
-
- If some role's option exists at one level but doesn't exist at another level, these options are merged.
279
-
In the example below, ``role1.greeting`` is ``'Hi'`` and ``role1.farewell`` is ``'Goodbye'``:
278
+
- Options provided in ``roles_cfg`` for different roles on different levels are merged.
279
+
In the example below, ``instance001`` has ``role1.greeting`` set to ``'Hi'`` and ``role2.farewell`` set to ``'Bye'``:
0 commit comments