ceph: disable dashboard
[infra/stack/kubernetes.git] / package.sh
index 197f1f2..87777a4 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
+
 #-------------------------------------------------------------------------------
 # Start packaging process
 #-------------------------------------------------------------------------------
@@ -29,7 +35,7 @@ echo "-------------------------------------------------------------------------"
 cd "${ENGINE_PATH}"
 ansible-playbook "${ENGINE_ANSIBLE_PARAMS[@]}" \
     -i "${ENGINE_PATH}/engine/inventory/localhost.ini" \
-    engine/stack/kubernetes/playbooks/package.yaml
+    "${STACK_ROOT_DIR}/playbooks/package.yaml"
 echo "-------------------------------------------------------------------------"
 echo
 echo "Info  : Packaging is done!"