代码拉取完成,页面将自动刷新
#!/bin/bash
#Basic enviroment set
set -x
TOP_DIR=$(cd $(dirname "$0") && pwd)
source $TOP_DIR/common
GetOSVersion
if [[ "$os_VENDOR" =~ (Ubuntu) ]]; then
echo "OS vendor is Ubutu" $os_RELEASE
elif [[ "$os_VENDOR" =~ (CentOS) ]]; then
echo "OS Vendor is Centos" $os_RELEASE
else
echo "Not support this os vendor"
exit 0
fi
init_lib_common
source $TOP_DIR/functions
function_main()
{
env_set
install_chrony
install_openstack_pkg
#First install controller ,then check whether need to install compute
if [ $controller -eq 1 ] ; then
install_mariadb
install_memcache
install_rabbitmq
install_etcd
install_keystone
install_glance
install_controller_nova
install_controller_neutron
install_dashboard
echo "=====Install Successfully within a control node====="
echo "Your dashborad address:http://$HOST_IP/dashboard/"
echo "Doamin:Default"
echo "User name:admin"
echo "Password:$PASSWORD"
fi
#IF in allinone mode ,we install control modules before this
if [ $compute -eq 1 ] ; then
install_compute_nova
install_compute_neutron
fi
#notify the state of installation
if [ $controller -eq 1 ] ; then
echo "=====Install Successfully within a control node====="
echo "Your dashborad address:http://$HOST_IP/dashboard/"
echo "Doamin:Default"
echo "User name:admin"
echo "Password:$PASSWORD"
fi
}
#call main
function_main
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。