您好,登錄后才能下訂單哦!
基礎配置:
controller:
1.修改主機名:
hostnamectl set-hostname controller
2.關閉防火墻并且設置開機不啟動:
systemctl stop firewalld systemctl disable firewalld
3.修改hosts文件:
192.168.214.10 controller
193.168.214.20 compute
4.修改selinux為permissive:
vi /etc/selinux/config SELINUX=permissive; setenforce 0
5.創建目錄并上傳鏡像并掛載:
mkdir /opt/{centos,iaas};
將鏡像CentOS-7-x86_64-DVD-1511.iso XianDian-IaaS-v2.2.iso上傳到/opt目錄下
mount -o loop CentOS-7-x86_64-DVD-1511.iso centos/
mount -o loop XianDian-IaaS-v2.2.iso iaas/
6.編寫YUM源:
mkdir /yum; mv /etc/yum.repos.d/ /yum
vi /etc/yum.repos.d/local.repo
[centos]
name=centos
baseurl=file://opt/centos
enabled=1
gpgcheck=0
[iaas]
name=iaas
baseurl=file://opt/iaas
enabled=1
gpgcheck=0
7.驗證YUM源:
yum clean all
yum repolist
8.安裝并配置ftp服務:
yum install vsftpd -y
vi /etc/vsftpd/vsftpd.conf
anon_root=/opt
systemctl enable vsftpd
systemctl restart vsftpd
9.安裝iaas-xiandian并配置環境變量
sed -i -e "s/PASS=/PASS=000000/" -e "s/^#//" /etc/xiandian/openrc.sh
vi /etc/xiandian/openrc.sh
HOST_IP=192.168.214.10
HOST_NAME=controller
HOST_IP_NODE=192.168.214.20
HOST_NAME_NODE=compute
RABBIT_USER=openstack
RABBIT_PASS=000000
DB_PASS=000000
DOMAIN_NAME=demo
ADMIN_PASS=000000
DEMO_PASS=000000
KEYSTONE_DBPASS=000000
GLANCE_DBPASS=000000
GLANCE_PASS=000000
NOVA_DBPASS=000000
NOVA_PASS=000000
NEUTRON_DBPASS=000000
NEUTRON_PASS=000000
METADATA_SECRET=000000
INTERFACE_NAME=eno33554976 (外網網卡名稱)
minvlan=101
maxvlan=200
CINDER_DBPASS=000000
CINDER_PASS=000000
BLOCK_DISK=sdb1(空白分區)
TROVE_DBPASS=000000
TROVE_PASS=000000
SWIFT_PASS=000000
OBJECT_DISK=sdb2 (空白分區)
STORAGE_LOCAL_NET_IP=192.168.214.20
HEAT_DBPASS=000000
HEAT_PASS=000000
CEILOMETER_DBPASS=000000
CEILOMETER_PASS=000000
AODH_DBPASS=000000
AODH_PASS=000000
compute:
1.修改主機名:
hostnamectl set-hostname compute
2.關閉防火墻并且設置開機不啟動:
systemctl stop firewalld systemctl disable firewalld
3.修改hosts文件:
192.168.214.10 controller
193.168.214.20 compute
4.修改selinux為permissive:
vi /etc/selinux/config SELINUX=permissive; setenforce 0
5.配置YUM源:
mkdir /yum
mv /etc/yum.repos.d/ /yum
vi /etc/yum.repos.d/ftp.repo
[centos]
name=centos
baseurl=ftp://controller/centos
enabled=1
gpgcheck=0
[iaas]
name=iaas
baseurl=ftp://controller/iaas/iaas-repo
enabled=1
gpgcheck=0
6.驗證YUM源:
yum clean all
yum repolist
7.從controller節點將環境變量復制過來:
scp controller:/etc/xiandian/openrc /etc/xiandian
各組件部署
controller:
1.執行腳本iaas-pre-host.sh(同compute節點一同執行)
2.mysql部署:
iaas-install-mysql.sh(僅在controller節點部署)
3.keystone部署:
iaas-install-keystone.sh(僅在controller節點部署)
4.glance部署:
iaas-install-glance.sh(僅在controller節點部署)
5.nova部署:
iaas-install-nova-controller.sh(先在controller節點執行,完成后執行compute節點的nova腳本)
6.neutron部署:
iaas-install-neutron-controller.sh(先在controller節點執行,完成后執行compute節點的eutron腳本)
neutron-gre:
iaas-install-neutron-controller-gre.sh(先在controller節點執行,完成后執行compute節點的neutron-gre腳本)
7.dashboard部署:
iaas-install-dashboard.sh(執行完成后即可登錄界面訪問daoshboard界面)
8.cinder部署:
iaas-install-cinder-controller.sh(先在controller節點執行,完成后執行compute節點的cinder腳本)
9.swift部署:
iaas-install-swift-controller.sh(先在controller節點執行,完成后執行compute節點的swift腳本)
10.trove部署:
在部署之前要先將網絡創建好,否則無法執行此腳本
iaas-install-trover.sh(僅在controller節點部署)
11.heat部署:
iaas-install-heat.sh(僅在controller節點部署)
12.ceilometer部署:
iaas-install-ceilometer.sh(先在controller節點執行,完成后執行compute節點的ceilometer腳本)
13.alarm部署:
iaas-install-alarm.sh(僅在controller節點部署)
compute:
1.執行腳本iaas-pre-host.sh(同controller節點一同執行)
2.nova部署:
iaas-install-nova-compute.sh(先在controller節點執行,完成后執行compute節點的nova腳本)
3.neutron部署:
iaas-install-neutron-controller.sh(先在controller節點執行,完成后執行compute節點的eutron腳本)
neutron-gre:
iaas-install-neutron-controller-gre.sh(先在controller節點執行,完成后執行compute節點的neutron-gre腳本)
4.cinder部署:
iaas-install-cinder-controller.sh(先在controller節點執行,完成后執行compute節點的cinder腳本)
5.swift部署:
iaas-install-swift-controller.sh(先在controller節點執行,完成后執行compute節點的swift腳本)
6.ceilometer部署:
iaas-install-ceilometer.sh(先在controller節點執行,完成后執行compute節點的ceilometer腳本)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。