Rename all Savanna usages to Sahara
There are several backward compatibility nits.
Change-Id: I93cac543375896602d158860cc557f86e41bcb63
diff --git a/extras.d/70-sahara.sh b/extras.d/70-sahara.sh
new file mode 100644
index 0000000..80e07ff
--- /dev/null
+++ b/extras.d/70-sahara.sh
@@ -0,0 +1,37 @@
+# sahara.sh - DevStack extras script to install Sahara
+
+if is_service_enabled sahara; then
+ if [[ "$1" == "source" ]]; then
+ # Initial source
+ source $TOP_DIR/lib/sahara
+ source $TOP_DIR/lib/sahara-dashboard
+ elif [[ "$1" == "stack" && "$2" == "install" ]]; then
+ echo_summary "Installing sahara"
+ install_sahara
+ cleanup_sahara
+ if is_service_enabled horizon; then
+ install_sahara_dashboard
+ fi
+ elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
+ echo_summary "Configuring sahara"
+ configure_sahara
+ create_sahara_accounts
+ if is_service_enabled horizon; then
+ configure_sahara_dashboard
+ fi
+ elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
+ echo_summary "Initializing sahara"
+ start_sahara
+ fi
+
+ if [[ "$1" == "unstack" ]]; then
+ stop_sahara
+ if is_service_enabled horizon; then
+ cleanup_sahara_dashboard
+ fi
+ fi
+
+ if [[ "$1" == "clean" ]]; then
+ cleanup_sahara
+ fi
+fi