| ... | ... |
@@ -327,6 +327,7 @@ The defined phases are: |
| 327 | 327 |
* **local** - extracts ``localrc`` from ``local.conf`` before ``stackrc`` is sourced |
| 328 | 328 |
* **post-config** - runs after the layer 2 services are configured and before they are started |
| 329 | 329 |
* **extra** - runs after services are started and before any files in ``extra.d`` are executed |
| 330 |
+* **post-extra** - runs after files in ``extra.d`` are executed |
|
| 330 | 331 |
|
| 331 | 332 |
The file is processed strictly in sequence; meta-sections may be specified more than once but if any settings are duplicated the last to appear in the file will be used. |
| 332 | 333 |
|
| ... | ... |
@@ -14,6 +14,9 @@ if is_service_enabled tempest; then |
| 14 | 14 |
echo_summary "Initializing Tempest" |
| 15 | 15 |
configure_tempest |
| 16 | 16 |
init_tempest |
| 17 |
+ elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then |
|
| 18 |
+ # local.conf Tempest option overrides |
|
| 19 |
+ : |
|
| 17 | 20 |
fi |
| 18 | 21 |
|
| 19 | 22 |
if [[ "$1" == "unstack" ]]; then |
| ... | ... |
@@ -19,10 +19,10 @@ sourced with one or more arguments, the first of which defines the hook phase: |
| 19 | 19 |
source: always called first in any of the scripts, used to set the |
| 20 | 20 |
initial defaults in a lib/* script or similar |
| 21 | 21 |
|
| 22 |
- stack: called by stack.sh. There are three possible values for |
|
| 22 |
+ stack: called by stack.sh. There are four possible values for |
|
| 23 | 23 |
the second arg to distinguish the phase stack.sh is in: |
| 24 | 24 |
|
| 25 |
- arg 2: install | post-config | extra |
|
| 25 |
+ arg 2: install | post-config | extra | post-extra |
|
| 26 | 26 |
|
| 27 | 27 |
unstack: called by unstack.sh |
| 28 | 28 |
|
| ... | ... |
@@ -1277,6 +1277,13 @@ if [[ -d $TOP_DIR/extras.d ]]; then |
| 1277 | 1277 |
done |
| 1278 | 1278 |
fi |
| 1279 | 1279 |
|
| 1280 |
+# Local Configuration |
|
| 1281 |
+# =================== |
|
| 1282 |
+ |
|
| 1283 |
+# Apply configuration from local.conf if it exists for layer 2 services |
|
| 1284 |
+# Phase: post-extra |
|
| 1285 |
+merge_config_group $TOP_DIR/local.conf post-extra |
|
| 1286 |
+ |
|
| 1280 | 1287 |
|
| 1281 | 1288 |
# Run local script |
| 1282 | 1289 |
# ================ |