openstack horizon配置

安装ntp:

# timedatectl set-timezone Asia/Shanghai

安装时钟同步:
# yum -y install chrony

编辑配置文件指向自己的ntp服务器:
# vim /etc/chrony.conf
server keystone iburst

启动服务并让服务自启动:
# systemctl enable chronyd.service
# systemctl start chronyd.service

验证时间同步情况:
# chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^- 119.79-161-57.customer.l> 2 8 377 337 +33ms[ +33ms] +/- 300ms
^* time4.aliyun.com 2 9 377 89 +1918us[+1920us] +/- 24ms
^+ 120.25.115.19 2 8 377 213 -2585us[-2580us] +/- 28ms
^- static-5-103-139-163.ip.> 1 9 377 10 +72ms[ +72ms] +/- 209ms

安装openstack客户端:

当使用epel源时最好禁用掉epel更新,避免影响到以后openstack的更新
# yum -y install yum-versionlock

安装Queens release源:
# yum -y install centos-release-openstack-queens

下载并安装RDO存储库RPM以启用OpenStack存储库。
# yum -y install https://rdoproject.org/repos/rdo-release.rpm

在所有节点上更新包:
# yum -y upgrade

安装openstack客户端
# yum -y install python-openstackclient

安装自动管理selinux组件:
# yum -y install openstack-selinux
Install the packages:

# yum -y install openstack-dashboard memcached python-memcached mod_wsgi
# systemctl start memcached

Edit the /etc/openstack-dashboard/local_settings file and complete the following actions:
(1)配置keystone位置:
OPENSTACK_HOST = “keystone”
(2)允许那些用户访问:

ALLOWED_HOSTS = [‘one.example.com’, ‘two.example.com’]
ALLOWED_HOSTS = [‘*’]
不安全

(3)启动Identity API version 3:
OPENSTACK_KEYSTONE_URL = “http://%s:5000/v3” % OPENSTACK_HOST

(4)支持域
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

(5)配置接口版本
OPENSTACK_API_VERSIONS = {
“identity”: 3,
“image”: 2,
“volume”: 2,
}

(6)将默认值配置为您通过仪表板创建的用户的默认域:
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = “Default”

(7)Configure user as the default role for users that you create via the dashboard:
OPENSTACK_KEYSTONE_DEFAULT_ROLE = “user”

(8)如果您选择了网络选项1,请禁用对三层网络服务的支持:

OPENSTACK_NEUTRON_NETWORK = {

‘enable_router’: False,
‘enable_quotas’: False,
‘enable_distributed_router’: False,
‘enable_ha_router’: False,
‘enable_lb’: False,
‘enable_firewall’: False,
‘enable_vpn’: False,
‘enable_fip_topology_check’: False,
}
我选择的2类网络:
OPENSTACK_NEUTRON_NETWORK = {
‘enable_router’: True,
‘enable_quotas’: True,
‘enable_ipv6’: True,
‘enable_distributed_router’: False,
‘enable_ha_router’: False,
‘enable_fip_topology_check’: True,
(9)(可选)配置时区:
TIME_ZONE = “TIME_ZONE”
Replace TIME_ZONE with an appropriate time zone identifier. For more information, see the list of time zones.

(10)配置memcached服务
SESSION_ENGINE = ‘django.contrib.sessions.backends.cache’

CACHES = {
‘default’: {
‘BACKEND’: ‘django.core.cache.backends.memcached.MemcachedCache’,
‘LOCATION’: ‘horizon:11211’,
}
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值