openstack配置5大yum源
(2016-12-29 13:47:33)分类: openstack |
先上传cirros-0.3.4-x86_64-disk和openstack-mitaka-packages.tar到root下面
内网 yum源:
#vi /etc/yum.repos.d/openstack-mitaka.repo
[openstack]
name=openstack
baseurl=file:///root/openstack-mitaka-packages
gpgcheck=0
enable=1
#yum install openstack-packstack
#packstack --allinone
--provision-image-url=/root/cirros-0.3.4-x86_64-disk.img
一、local-yum源:
vi /etc/yum.repos.d/rhel7.repo
[rhel7]
name=rhel7
baseurl=file:///mnt
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
二、epel yum源:
#wget
http://mirrors.aliyun.com/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
#rpm -ivh epel-release-7-8.noarch.rpm
或者:
vi /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 -$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
二、RDO yum源:
#wget
http://repos.fedorapeople.org/repos/openstack-mitaka/rdo-release-mitaka-3.noarch.rpm
#rpm -ivh rdo-release-mitaka-3.noarch.rpm
#rpm
--import/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
三、基本 yum源:
vi /etc/yum.repos.d/base.repo
[base]
name=CentOS-$releasever-Base
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/7.2.1511/os/x86_64
gpgcheck=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
四、puppet yum源:
vi /etc/yum.repos.d/puppet.repo
[puppet]
name=puppet
baseurl=http://yum.puppetlabs.com/el/7/products/x86_64
gpgcheck=0
enabled=1
#yum install openstack-packstack
#packstack --allinone