没有合适的资源?快使用搜索试试~ 我知道了~
手动部署Openstack Rocky 双节点(2)- Keystone
需积分: 5 0 下载量 50 浏览量
2024-01-27
12:42:20
上传
评论
收藏 36KB DOCX 举报
温馨提示
试读
16页
手动部署Openstack Rocky 双节点(2)- Keystone
资源推荐
资源详情
资源评论
文章目录
� 参考文档
� Keystone (controller-only)
�
� 安装软件包
� 修改配置文件
� 创建 keystone 数据库
� 初始化 keystone 数据库
� 启用 Fernet key
� Bootstrap Keystone Services
� 配置 Apache HTTP Server for Keystone
�
� keystone 配置文件
� Apache 配置文件
� 启动 Apache 服务
� 创建租户
�
� 注入临时身份鉴权环境变量
� 创建 service 项目
� 创建 myproject 项目
� 创建 myuser 账户
� 创建 myrole 角色
� 检验
� 创建 adminrc 文件
� 结语
参考文档
手动部署 OpenStack Rocky 双节点
Keystone (controller-only)
安装软件包
[tony@controller ~]$ sudo yum install -y openstack-keystone httpd mod_wsgi
#
检查
httpd
包的版本
[tony@controller ~]$ yum info httpd
...
Installed Packages
Name : httpd
Arch : x86_64
Version : 2.4.6
Release : 88.el7.centos
Size : 9.4 M
Repo : installed
From repo : base
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
修改配置文件
在/etc/keystone/keystone.conf 文件中添加如下行。
[database]
connection = mysql+pymysql://keystone:$password@controller/keystone
[token]
provider = fernet
[tony@controller ~]$ sudo cat /etc/keystone/keystone.conf | grep -v -E
'^#|^$'
[DEFAULT]
[application_credential]
[assignment]
[auth]
[cache]
[catalog]
[cors]
[credential]
[database]
connection = mysql+pymysql://keystone:$password@controller/keystone
[domain_config]
[endpoint_filter]
[endpoint_policy]
[eventlet_server]
[federation]
[fernet_tokens]
[healthcheck]
[identity]
[identity_mapping]
[ldap]
[matchmaker_redis]
[memcache]
[oauth1]
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[policy]
[profiler]
[resource]
[revoke]
[role]
[saml]
[security_compliance]
[shadow_users]
[signing]
[token]
provider = fernet
[tokenless_auth]
[trust]
[unified_limit]
[wsgi]
创建 keystone 数据库
[tony@controller ~]$ mysql -u root -p
Enter password: Enter Password
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 10.1.20-MariaDB MariaDB Server
Copyright © 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
MariaDB [(none)]> create database keystone;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all privileges on keystone.* to
‘keystone’@‘localhost’ identified by ‘$password’;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all privileges on keystone.* to ‘keystone’@’%’
identified by ‘$password’;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> quit
Bye
初始化 keystone 数据库
[tony@controller ~]$ sudo su -s /bin/sh -c "keystone-manage db_sync"
keystone
剩余15页未读,继续阅读
资源评论
zhalibashi
- 粉丝: 0
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功