deb-designate/contrib/devstack/extras.d/70-designate.sh
Kiall Mac Innes 515bb38603 Fixup DevStack Horizon install
Change-Id: I85b7c600fe78c19d562ddcf0fcfc87dca101a2a5
2015-04-07 19:05:28 +00:00

50 lines
1.3 KiB
Bash

# check for service enabled
if is_service_enabled designate; then
if [[ "$1" == "source" ]]; then
# Initial source of lib script
source $TOP_DIR/lib/designate
fi
if [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Designate"
install_designate
echo_summary "Installing Designate Client"
install_designateclient
if is_service_enabled horizon; then
echo_summary "Installing Designate Dashboard"
install_designatedashboard
fi
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Designate"
configure_designate
if is_service_enabled key; then
echo_summary "Creating Designate Keystone Accounts"
create_designate_accounts
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Designate"
init_designate
echo_summary "Starting Designate"
start_designate
echo_summary "Creating Pool NS Records"
create_designate_ns_records
fi
if [[ "$1" == "unstack" ]]; then
stop_designate
fi
if [[ "$1" == "clean" ]]; then
echo_summary "Cleaning Designate"
cleanup_designate
fi
fi