Centos0S7手动安装OpenStack Pike版--(keystone)

前端之家收集整理的这篇文章主要介绍了Centos0S7手动安装OpenStack Pike版--(keystone)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

OpenStack安装指南_Mitaka
http://down.51cto.com/data/2331199

Openstack管理手册-Newton版-CentOS7.2
http://down.51cto.com/data/2331201

#Configure Keystone
MysqL -uroot -ppasswd123 -e "CREATE DATABASE keystone"
MysqL -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON keystone. TO 'keystone'@'localhost' IDENTIFIED BY 'passwd123'"
MysqL -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON keystone.
TO 'keystone'@'%' IDENTIFIED BY 'passwd123'"

vim /etc/keystone/keystone.conf
[database]
connection = MysqL+pyMysqL://keystone:passwd123@controller/keystone
[token]
provider = fernet

su -s /bin/sh -c "keystone-manage db_sync" keystone

keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
keystone-manage credential_setup --keystone-user keystone --keystone-group keystone

keystone-manage bootstrap --bootstrap-password ADMIN_PASS \
--bootstrap-admin-url http://controller:35357/v3/ \
--bootstrap-internal-url http://controller:5000/v3/ \
--bootstrap-public-url http://controller:5000/v3/ \
--bootstrap-region-id RegionOne

Configure the Apache HTTP server
vim /etc/httpd/conf/httpd.conf
ServerName controller

ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
systemctl start httpd.service
systemctl enable httpd.service
systemctl status httpd.service

export OS_USERNAME=admin
export OS_PASSWORD=passwd123
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3

openstack project create --domain default --description "Service Project" service
openstack project create --domain default --description "Demo Project" demo
openstack user create --domain default --password passwd123 demo
openstack role create user
openstack role add --project demo --user demo user

unset OS_AUTH_URL OS_PASSWORD
openstack --os-auth-url http://controller:35357/v3 \
--os-project-domain-name Default --os-user-domain-name Default \
--os-project-name admin --os-username admin token issue

openstack --os-auth-url http://controller:5000/v3 \
--os-project-domain-name Default --os-user-domain-name Default \
--os-project-name demo --os-username demo token issue

vim admin-openrc
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=passwd123
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

source admin-openrcopenstack token issue

原文链接:https://www.f2er.com/centos/374741.html

猜你在找的CentOS相关文章