08b6018616
In fedora people, we created a link to the latest image: https://fedorapeople.org/groups/magnum/fedora-atomic-latest.qcow2. Currently, this link is pointed to https://fedorapeople.org/groups/magnum/fedora-23-atomic-20160405.qcow2. It should be updated when a new image is uploaded. For now, we need to update our docs to point to the new link. Partial-Bug: #1573361 Change-Id: I8ff21a3372a929511351f5242568729d07b6e26b
57 lines
1.4 KiB
Bash
Executable File
57 lines
1.4 KiB
Bash
Executable File
# magnum.sh - Devstack extras script to install magnum
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
echo_summary "magnum's plugin.sh was called..."
|
|
source $DEST/magnum/devstack/lib/magnum
|
|
(set -o posix; set)
|
|
|
|
if is_service_enabled magnum-api magnum-cond; then
|
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing magnum"
|
|
install_magnum
|
|
|
|
MAGNUM_GUEST_IMAGE_URL=${MAGNUM_GUEST_IMAGE_URL:-"https://fedorapeople.org/groups/magnum/fedora-atomic-latest.qcow2"}
|
|
IMAGE_URLS+=",${MAGNUM_GUEST_IMAGE_URL}"
|
|
|
|
LIBS_FROM_GIT="${LIBS_FROM_GIT},python-magnumclient"
|
|
|
|
install_magnumclient
|
|
cleanup_magnum
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring magnum"
|
|
configure_magnum
|
|
|
|
# Hack a large timeout for now
|
|
iniset /etc/keystone/keystone.conf token expiration 7200
|
|
|
|
if is_service_enabled key; then
|
|
create_magnum_accounts
|
|
fi
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
# Initialize magnum
|
|
init_magnum
|
|
magnum_register_image
|
|
|
|
# Start the magnum API and magnum taskmgr components
|
|
echo_summary "Starting magnum"
|
|
start_magnum
|
|
|
|
configure_iptables
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_magnum
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_magnum
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|