码迷,mamicode.com
首页 > 其他好文 > 详细

Dashboard集群

时间:2017-10-26 22:57:53      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:hang   emctl   vol   target   去掉m   httpd   sha   settings   grep   

#Dashboard集群

 openstack pike 部署 目录汇总 http://www.cnblogs.com/elvi/p/7613861.html

##8.Dashboard集群

#####在controller1安装配置

#安装
yum install openstack-dashboard -y

#配置
cp /etc/openstack-dashboard/local_settings{,.bak}
#egrep -v #|^$ /etc/openstack-dashboard/local_settings #显示默认配置
Setfiles=/etc/openstack-dashboard/local_settings
sed -i s#_member_#user#g $Setfiles
sed -i s#OPENSTACK_HOST = "127.0.0.1"#OPENSTACK_HOST = "controller1"# $Setfiles
##允许所有主机访问#
sed -i "/ALLOWED_HOSTS/cALLOWED_HOSTS = [‘*‘, ]" $Setfiles
#去掉memcached注释#
sed -in 153,158s/#// $Setfiles 
sed -in 160,164s/.*/#&/ $Setfiles
sed -i s#UTC#Asia/Shanghai#g $Setfiles
sed -i s#%s:5000/v2.0#%s:5000/v3# $Setfiles
sed -i /ULTIDOMAIN_SUPPORT/cOPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True $Setfiles
sed -i "s@^#OPENSTACK_KEYSTONE_DEFAULT@OPENSTACK_KEYSTONE_DEFAULT@" $Setfiles
echo #set
OPENSTACK_API_VERSIONS = {
    "identity": 3,
    "image": 2,
    "volume": 2,
}
#>>$Setfiles
#
systemctl restart httpd

#访问
# http://vip/dashboard/

# http集群,前面步骤已配置http://www.cnblogs.com/elvi/p/7736570.html #########其它节点配置controller2,controller3 #同步controller1配置到其它节点 rsync -avzP -e ssh -p 22 /etc/openstack-dashboard/local_settings controller2:/etc/openstack-dashboard/ rsync -avzP -e ssh -p 22 /etc/openstack-dashboard/local_settings controller3:/etc/openstack-dashboard/ #更改配置,重启http ssh controller2 "sed -i ‘s/controller1/controller2/‘ /etc/openstack-dashboard/local_settings;systemctl restart httpd" ssh controller3 "sed -i ‘s/controller1/controller3/‘ /etc/openstack-dashboard/local_settings;systemctl restart httpd"

 

Dashboard集群

标签:hang   emctl   vol   target   去掉m   httpd   sha   settings   grep   

原文地址:http://www.cnblogs.com/elvi/p/7736724.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!