Centos 7 OpenStack Horizonインストールチュートリアル
2237 ワード
1.ミラーソースのインストール
2.vim/etc/openstack-dashboard/local_settings
3.
4.ローカルアクセス
参照先:https://docs.openstack.org/horizon/latest/install/install-rdo.html
yum install -y epel-release
yum list all|grep openstack
yum install centos-release-openstack-train.noarch -y
yum install openstack-dashboard
2.vim/etc/openstack-dashboard/local_settings
# -*- coding: utf-8 -*-
OPENSTACK_HOST = "192.168.122.1"
#
ALLOWED_HOSTS = ['*', ]
# API
OPENSTACK_API_VERSIONS = {
"identity": 3,
"volume": 2,
"compute": 2,
}
#
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
#
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'
# Keystone
OPENSTACK_HOST = "192.168.122.1"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
# user
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
# Session Memcached
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '192.168.122.1',
}
}
# Web
OPENSTACK_HYPERVISOR_FEATURES = {
'can_set_mount_point': True,
'can_set_password': True,
'requires_keypair': False,
}
#
TIME_ZONE = "Asia/Shanghai"
#
OPENSTACK_NEUTRON_NETWORK = {
'enable_router': False,
'enable_quotas': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_lb': False,
'enable_firewall': False,
'enable_': False,
'enable_fip_topology_check': False,
}
3.
//
service restart httpd
//
systemctl restart memchaed
4.ローカルアクセス
参照先:https://docs.openstack.org/horizon/latest/install/install-rdo.html