http://blog.csdn.net/wylfengyujiancheng/article/details/50008325
1、環境準備:
操作系統:CentOS7.1
虛擬機或物理機一臺:建議2vcpu+ 2G+內存 10G+硬盤
確保系統能夠上網
2、配置緩存
修改/etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=1 #修改爲1,保存緩存
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
3、執行安裝,時間取決於網速,請耐心等待。
yum -y update
yum -y install chrony
yum -y install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum -y install centos-release-openstack-liberty
yum -y install https://rdoproject.org/repos/openstack-liberty/rdo-release-liberty.rpm
yum -y upgrade
yum -y install
python-openstackclient
yum -y install openstack-selinux
yum -y install mariadb mariadb-server python2-PyMySQL
yum -y install mongodb-server mongodb
yum -y install rabbitmq-server
yum -y install openstack-keystone httpd mod_wsgi memcached python-memcached
yum -y install openstack-glance python-glance python-glanceclient
yum -y install openstack-nova-api openstack-nova-cert openstack-nova-conductor
openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler
python-novaclient
yum -y install openstack-nova-compute sysfsutils
yum -y install openstack-neutron openstack-neutron-ml2 openstack-neutron-linuxbridge
python-neutronclient
yum -y install openstack-neutron openstack-neutron-ml2 openstack-neutron-linuxbridge
python-neutronclient
yum -y install openstack-neutron openstack-neutron-linuxbridge
yum -y install openstack-dashboard httpd mod_wsgi memcached python-memcached
yum -y install openstack-cinder python-cinderclient
yum -y install lvm2
yum -y install openstack-cinder targetcli python-oslo-policy
yum -y install openstack-swift-proxy
python-swiftclient python-keystone-auth-token python-keystonemiddleware memcached
yum -y install xfsprogs rsync
yum -y install openstack-swift-account openstack-swift-container openstack-swift-object
yum -y install openstack-heat-api openstack-heat-api-cfn
openstack-heat-engine python-heatclient
yum -y install openstack-ceilometer-api openstack-ceilometer-collector openstack-ceilometer-notification
openstack-ceilometer-central openstack-ceilometer-alarm python-ceilometerclient
yum -y install openstack-ceilometer-compute python-ceilometerclient python-pecan
yum -y install createrepo
4、創建目錄
# mkdir /opt/CentOS7.0_liberty_rpm
5、將yum緩存的rpm包拷貝到/opt/CentOS7.0_liberty_rpm
find /var/cache/yum/x86_64/
-name *.rpm
-exec cp -a {} /opt/CentOS7.0_liberty_rpm
\;
6、生成本地yum源
# createrepo /opt/CentOS7.0_liberty_rpm
7、將/opt/CentOS7.0_liberty_rpm打包拷貝到需要安裝的機器上配置本地源即可使用