File tree Expand file tree Collapse file tree 3 files changed +13
-81
lines changed
Expand file tree Collapse file tree 3 files changed +13
-81
lines changed Original file line number Diff line number Diff line change @@ -8,27 +8,19 @@ if is_service_enabled sahara; then
88 elif [[ " $1 " == " stack" && " $2 " == " install" ]]; then
99 echo_summary " Installing sahara"
1010 install_sahara
11+ install_python_saharaclient
1112 cleanup_sahara
12- if is_service_enabled horizon; then
13- install_sahara_dashboard
14- fi
1513 elif [[ " $1 " == " stack" && " $2 " == " post-config" ]]; then
1614 echo_summary " Configuring sahara"
1715 configure_sahara
1816 create_sahara_accounts
19- if is_service_enabled horizon; then
20- configure_sahara_dashboard
21- fi
2217 elif [[ " $1 " == " stack" && " $2 " == " extra" ]]; then
2318 echo_summary " Initializing sahara"
2419 start_sahara
2520 fi
2621
2722 if [[ " $1 " == " unstack" ]]; then
2823 stop_sahara
29- if is_service_enabled horizon; then
30- cleanup_sahara_dashboard
31- fi
3224 fi
3325
3426 if [[ " $1 " == " clean" ]]; then
Original file line number Diff line number Diff line change 77# ``stack.sh`` calls the entry points in this order:
88#
99# install_sahara
10+ # install_python_saharaclient
1011# configure_sahara
1112# start_sahara
1213# stop_sahara
@@ -24,8 +25,13 @@ set +o xtrace
2425SAHARA_REPO=${SAHARA_REPO:-${GIT_BASE}/openstack/sahara.git}
2526SAHARA_BRANCH=${SAHARA_BRANCH:-master}
2627
28+ SAHARA_PYTHONCLIENT_REPO=${SAHARA_PYTHONCLIENT_REPO:-${GIT_BASE}/openstack/python-saharaclient.git}
29+ SAHARA_PYTHONCLIENT_BRANCH=${SAHARA_PYTHONCLIENT_BRANCH:-master}
30+
2731# Set up default directories
2832SAHARA_DIR=$DEST/sahara
33+ SAHARA_PYTHONCLIENT_DIR=$DEST/python-saharaclient
34+
2935SAHARA_CONF_DIR=${SAHARA_CONF_DIR:-/etc/sahara}
3036SAHARA_CONF_FILE=${SAHARA_CONF_DIR}/sahara.conf
3137
@@ -154,6 +160,12 @@ function install_sahara {
154160 setup_develop $SAHARA_DIR
155161}
156162
163+ # install_python_saharaclient() - Collect source and prepare
164+ function install_python_saharaclient {
165+ git_clone $SAHARA_PYTHONCLIENT_REPO $SAHARA_PYTHONCLIENT_DIR $SAHARA_PYTHONCLIENT_BRANCH
166+ setup_develop $SAHARA_PYTHONCLIENT_DIR
167+ }
168+
157169# start_sahara() - Start running processes, including screen
158170function start_sahara {
159171 screen_it sahara "cd $SAHARA_DIR && $SAHARA_BIN_DIR/sahara-all --config-file $SAHARA_CONF_FILE"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments