openstack 两个脚步需要注意和安装OpenStack配套视频–不可思议团队

####init.sh####

#!/bin/bash
set -e
set -o xtrace

TOP_DIR=$(cd $(dirname "$0") && pwd)
TEMP=`mktemp`; rm -rfv $TEMP >/dev/null; mkdir -p $TEMP;
DEST=/opt/stack
source $TOP_DIR/tools/function
#---------------------------------------------
# Check for apt.
#---------------------------------------------
DEBIAN_FRONTEND=noninteractive \
apt-get --option \
"Dpkg::Options::=--force-confold" --assume-yes \
install -y --force-yes openssh-server
#---------------------------------------------
# Kill process by Name
#---------------------------------------------

cp -rf $TOP_DIR/tools/nkill /usr/bin/
chmod +x /usr/bin/nkill

#---------------------------------------------
# Set up iptables.
#---------------------------------------------

setup_iptables

set +o xtrace

############################################################################
###########################################################################

###start-all.sh####

#!/bin/bash

set -e
set -o xtrace

cd /root/
if [[ `service mysql status | grep running | wc -l` -eq 0 ]]; then
service mysql start
fi

service rabbitmq-server start
service keystone start
source keyrc
keystone user-list

./swift-proxy.sh
./swift-storage.sh
sleep 1
source swiftrc
swift stat

./glance.sh
source glancerc
sleep 1
glance index

./quantum.sh
./quantum-agent.sh
sleep 20
source quantumrc
quantum net-list

./cinder-api.sh
./cinder-volume.sh
sleep 1
source cinderrc

./nova-api.sh
./nova-compute.sh
sleep 1
source novarc

./dashboard.sh

virsh list --all | grep instan  | grep -v running | awk '{print $2}' | xargs -i virsh start {}

set +o xtrace

###################################################

安装OpenStack配套视频:http://www.tudou.com/listplay/XVZuh9OC1eg.html

OpenStack开源王者归来》作者  指定官方QQ群345596547      OpenStack品书会

 

 

 

 

博主

让学习成为习惯,坚持-共享-开源-自由! 成功者决不放弃,放弃者绝不成功!

相关推荐

嗨、骚年、快来消灭0回复。