##7.Dashboard web管理界面
##7.Dashboard web管理界面 #7.1.horizon.sh # 在controller安装 #安装 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 = "controller"#‘ $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 "[email protected]^#[email protected][email protected]" $Setfiles echo ‘ #set OPENSTACK_API_VERSIONS = { "identity": 3, "image": 2, "volume": 2, } #‘>>$Setfiles # systemctl restart httpd #访问 # http://10.2.1.20/dashboard/
时间: 2024-10-12 21:03:08