8.1 安装openstack-packstack软件
host1:
[root@host1 ~]# yum install -y openstack-packstack
8.2 生成应答文件
[root@host1 ~]# packstack --gen-answer-file answer.ini
[root@host1 ~]#vim answer.ini
------------------------------------配置文件解释---------------------------------------------------
Packstack changed given value to required value /root/.ssh/id_rsa.pub
11 CONFIG_DEFAULT_PASSWORD=Taren1 // 默认密码
42 CONFIG_SWIFT_INSTALL=n // 外接存储没有,设置禁用 swift (对象存储) 模块
75 CONFIG_NTP_SERVERS=192.168.1.106 // NTP server 地址192.168.0.106
98 CONFIG_COMPUTE_HOSTS=192.168.0.10,192.168.1.11 //本机ip地址,计算节点的ip地址(此次默认没做更改)
102 CONFIG_NETWORK_HOSTS=192.168.1.10,192.168.1.11 //配置主机网络ip地址,openstack 管理哪些网络,需要配置vxlan网络的 IP 地址(此次默认)
554 CONFIG_CINDER_VOLUMES_CREATE=n // 自动创建卷,禁用自动创建 cinder-volumns 卷组
840 CONFIG_NEUTRON_ML2_TYPE_DRIVERS=flat,vxlan //支持扁平网络和vlan,设置网络支持协议
876 CONFIG_NEUTRON_ML2_VXLAN_GROUP=239.1.1.5 //配置用于通讯的主播地址239.1.1.5
910 CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=physnet1:br-ex //桥映射,虚拟交换机
921 CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:eth0 //虚拟交换机跟哪个物理网卡连接,和外网通信
936 CONFIG_NEUTRON_OVS_TUNNEL_IF=eth1 //隧道网卡,vlan通信
1179 CONFIG_PROVISION_DEMO=n //测试demo,禁用测试的DEMO
8.3 安装openstack
[root@host1 ~]# packstack --answer-file=answer.ini
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20210723-161650-hIhH2v/openstack-setup.log
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
.............
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
Additional information:
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.0.10. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.0.10/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* The installation log file is available at: /var/tmp/packstack/20210723-161650-hIhH2v/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20210723-161650-hIhH2v/manifests