Merge "Add new stack phase: post-extra"
This commit is contained in:
commit
72acdd93ef
@ -327,6 +327,7 @@ The defined phases are:
|
|||||||
* **local** - extracts ``localrc`` from ``local.conf`` before ``stackrc`` is sourced
|
* **local** - extracts ``localrc`` from ``local.conf`` before ``stackrc`` is sourced
|
||||||
* **post-config** - runs after the layer 2 services are configured and before they are started
|
* **post-config** - runs after the layer 2 services are configured and before they are started
|
||||||
* **extra** - runs after services are started and before any files in ``extra.d`` are executed
|
* **extra** - runs after services are started and before any files in ``extra.d`` are executed
|
||||||
|
* **post-extra** - runs after files in ``extra.d`` are executed
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
@ -14,6 +14,9 @@ if is_service_enabled tempest; then
|
|||||||
echo_summary "Initializing Tempest"
|
echo_summary "Initializing Tempest"
|
||||||
configure_tempest
|
configure_tempest
|
||||||
init_tempest
|
init_tempest
|
||||||
|
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
|
||||||
|
# local.conf Tempest option overrides
|
||||||
|
:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "unstack" ]]; then
|
if [[ "$1" == "unstack" ]]; then
|
||||||
|
@ -19,10 +19,10 @@ sourced with one or more arguments, the first of which defines the hook phase:
|
|||||||
source: always called first in any of the scripts, used to set the
|
source: always called first in any of the scripts, used to set the
|
||||||
initial defaults in a lib/* script or similar
|
initial defaults in a lib/* script or similar
|
||||||
|
|
||||||
stack: called by stack.sh. There are three possible values for
|
stack: called by stack.sh. There are four possible values for
|
||||||
the second arg to distinguish the phase stack.sh is in:
|
the second arg to distinguish the phase stack.sh is in:
|
||||||
|
|
||||||
arg 2: install | post-config | extra
|
arg 2: install | post-config | extra | post-extra
|
||||||
|
|
||||||
unstack: called by unstack.sh
|
unstack: called by unstack.sh
|
||||||
|
|
||||||
|
7
stack.sh
7
stack.sh
@ -1277,6 +1277,13 @@ if [[ -d $TOP_DIR/extras.d ]]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Local Configuration
|
||||||
|
# ===================
|
||||||
|
|
||||||
|
# Apply configuration from local.conf if it exists for layer 2 services
|
||||||
|
# Phase: post-extra
|
||||||
|
merge_config_group $TOP_DIR/local.conf post-extra
|
||||||
|
|
||||||
|
|
||||||
# Run local script
|
# Run local script
|
||||||
# ================
|
# ================
|
||||||
|
Loading…
Reference in New Issue
Block a user