制作L版openstack本地yum源方法

作者:【吴业亮】云计算开发工程师
博客:http://blog.csdn.net/wylfengyujiancheng

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打包拷贝到需要安装的机器上配置本地源即可使用

你可能感兴趣的:(openstack,yum,liberty,本地源)