X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=install.sh;h=d5f1b8d6b196b0a28212f6296b09d4b92c59a575;hp=9ae4cc3ba98ddc74c5b6f853684f208ad1c47de1;hb=bae763edf77d9870274ee0253a14a9fc8d96cecb;hpb=20d34e772e021fabdee0aa9b50e9804a80d5108a diff --git a/install.sh b/install.sh index 9ae4cc3..d5f1b8d 100755 --- a/install.sh +++ b/install.sh @@ -21,6 +21,12 @@ set -o errexit 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 #------------------------------------------------------------------------------- @@ -29,7 +35,7 @@ echo "-------------------------------------------------------------------------" 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 "-------------------------------------------------------------------------" #------------------------------------------------------------------------------- @@ -52,7 +58,7 @@ source "${ENGINE_PATH}/engine/library/engine-services.sh" 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 "-------------------------------------------------------------------------" #-------------------------------------------------------------------------------