在所有的openstack節點上執行
1.配置阿里yum源
yum -y install wget
rm -rf /etc/yum.repos.d/*
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
2.安裝ntp
yum -y install chrony
systemctl enable chronyd.service && systemctl start chronyd.service
chronyc sources
timedatectl
date "+%Y-%m-%d %H:%M:%S"
hwclock -w
3.禁用selinux
setenforce 0
sed -i "/SELINUX=enforcing/c\SELINUX=disabled" /etc/selinux/config
4.關閉防火牆
systemctl disable firewalld && systemctl stop firewalld && systemctl status firewalld
5.配置hosts
cat << EOF >> /etc/hosts
172.31.240.49 controller
172.31.240.45 compute01
172.31.240.46 compute02
172.31.240.47 compute03
EOF
6.安裝epel源
yum -y install epel-release
7.安裝openstack源
yum -y install centos-release-openstack-queens
其它版本的源:
centos-release-openstack-ocata.noarch
centos-release-openstack-pike.x86_64
centos-release-openstack-queens.noarch
centos-release-openstack-rocky.noarch
centos-release-openstack-stein.noarch
8.安裝openstack命令行客戶端
yum -y install python-openstackclient
9.安裝openstack命令行配置工具
yum -y install openstack-utils
10.安裝openstack-selinux軟件包
yum -y install openstack-selinux
在控制節點上執行
11.安裝單機版rabbitmq
yum -y install rabbitmq-server
12.啓動rabbitmq
systemctl enable rabbitmq-server && systemctl restart rabbitmq-server && systemctl status rabbitmq-server
13.在rabbitmq中添加openstack用戶
rabbitmqctl add_user openstack 0penstackRMQ
rabbitmqctl set_permissions -p "/" openstack ".*" ".*" ".*"
rabbitmqctl set_user_tags openstack administrator
rabbitmqctl list_users
14.安裝單機版memcached
yum -y install memcached python-memcached
15.配置memcached
sed -i '/OPTIONS=/c\OPTIONS="-l 0.0.0.0,::1"' /etc/sysconfig/memcached
16.啓動memcached
systemctl enable memcached.service && systemctl start memcached.service && systemctl status memcached.service