Add Devstack install support for searchlightclient
Provides devstack plugin support for python-searchlightclient To Test this on devstack see review comments. Change-Id: I9050ac6720dece11e855665b7f17a4717728e722 Partially-Implements: blueprint openstack-client-search-initial-plugin
This commit is contained in:
parent
7839bdf5ae
commit
d02badc51e
|
@ -175,6 +175,12 @@ function install_searchlight {
|
||||||
${TOP_DIR}/pkg/elasticsearch.sh install
|
${TOP_DIR}/pkg/elasticsearch.sh install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# install_searchlightclient - Collect source and prepare
|
||||||
|
function install_searchlightclient {
|
||||||
|
git_clone $SEARCHLIGHTCLIENT_REPO $SEARCHLIGHTCLIENT_DIR $SEARCHLIGHTCLIENT_BRANCH
|
||||||
|
setup_develop $SEARCHLIGHTCLIENT_DIR
|
||||||
|
}
|
||||||
|
|
||||||
# start_searchlight - Start running processes, including screen
|
# start_searchlight - Start running processes, including screen
|
||||||
function start_searchlight {
|
function start_searchlight {
|
||||||
if is_service_enabled searchlight-api; then
|
if is_service_enabled searchlight-api; then
|
||||||
|
@ -208,6 +214,9 @@ if is_service_enabled searchlight; then
|
||||||
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||||
echo_summary "Installing Searchlight"
|
echo_summary "Installing Searchlight"
|
||||||
install_searchlight
|
install_searchlight
|
||||||
|
|
||||||
|
echo_summary "Installing Searchlight client"
|
||||||
|
install_searchlightclient
|
||||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||||
echo_summary "Configuring Searchlight"
|
echo_summary "Configuring Searchlight"
|
||||||
configure_searchlight
|
configure_searchlight
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
# Devstack settings
|
# Devstack settings
|
||||||
|
|
||||||
|
#Searchlight client settings
|
||||||
|
SEARCHLIGHTCLIENT_DIR=$DEST/python-searchlightclient
|
||||||
|
SEARCHLIGHTCLIENT_REPO=${SEARCHLIGHTCLIENT_REPO:-${GIT_BASE}/openstack/python-searchlightclient.git}
|
||||||
|
SEARCHLIGHTCLIENT_BRANCH=${SEARCHLIGHTCLIENT_BRANCH:-master}
|
||||||
|
|
||||||
# we have to add searchlight to enabled services for screen_it to work
|
# we have to add searchlight to enabled services for screen_it to work
|
||||||
enable_service searchlight
|
enable_service searchlight
|
||||||
|
|
Loading…
Reference in New Issue