set -o nounset
set -o pipefail
+#-------------------------------------------------------------------------------
+# Find and set where we are
+#-------------------------------------------------------------------------------
+STACK_ROOT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
+export STACK_ROOT_DIR
+
#-------------------------------------------------------------------------------
# Bootstrap stack software configuration
#-------------------------------------------------------------------------------
cd "${ENGINE_PATH}"
ansible-playbook "${ENGINE_ANSIBLE_PARAMS[@]}" \
-i "${ENGINE_PATH}/engine/inventory/localhost.ini" \
- engine/stack/kubernetes/playbooks/bootstrap-swconfig.yaml
+ "${STACK_ROOT_DIR}/playbooks/bootstrap-swconfig.yaml"
echo "-------------------------------------------------------------------------"
#-------------------------------------------------------------------------------
cd "${ENGINE_PATH}"
ansible-playbook "${ENGINE_ANSIBLE_PARAMS[@]}" \
-i "${ENGINE_PATH}/engine/inventory/inventory.ini" \
- engine/stack/kubernetes/playbooks/prepare-artifacts.yaml
+ "${STACK_ROOT_DIR}/playbooks/prepare-artifacts.yaml"
echo "-------------------------------------------------------------------------"
#-------------------------------------------------------------------------------