ceph: disable dashboard
[infra/stack/kubernetes.git] / install.sh
index 9ae4cc3ba98ddc74c5b6f853684f208ad1c47de1..d5f1b8d6b196b0a28212f6296b09d4b92c59a575 100755 (executable)
@@ -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 "-------------------------------------------------------------------------"
 
 #-------------------------------------------------------------------------------