2016-05-16 21:33:39 +00:00
|
|
|
#/bin/bash -fv
|
|
|
|
#
|
|
|
|
# Install Openstack.
|
|
|
|
# Usage: openstack <openstack-site> <ceph-monitor>
|
|
|
|
#
|
|
|
|
# This script installs Openstack on one node, and connects it to a ceph
|
|
|
|
# cluster on another set of nodes. It is intended to run from a third
|
|
|
|
# node.
|
|
|
|
#
|
|
|
|
# Assumes a single node Openstack cluster and a single monitor ceph
|
|
|
|
# cluster.
|
|
|
|
#
|
|
|
|
# The execs directory contains scripts to be run on remote sites.
|
|
|
|
# The files directory contains files to be copied to remote sites.
|
|
|
|
#
|
|
|
|
|
|
|
|
source ./copy_func.sh
|
|
|
|
source ./fix_conf_file.sh
|
|
|
|
openstack_node=${1}
|
|
|
|
ceph_node=${2}
|
|
|
|
./packstack.sh $openstack_node $ceph_node
|
|
|
|
echo 'done running packstack'
|
2016-07-21 21:03:13 +00:00
|
|
|
sleep 60
|
2016-05-16 21:33:39 +00:00
|
|
|
./connectceph.sh $openstack_node $ceph_node
|
|
|
|
echo 'done connecting'
|
2016-07-21 21:03:13 +00:00
|
|
|
sleep 60
|
2016-05-16 21:33:39 +00:00
|
|
|
./image_create.sh $openstack_node $ceph_node
|