#所有控制和计算节点开启yum缓存
[root@controller01~]#cat/etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
#开启缓存keepcache=1表示开启缓存,keepcache=0表示不开启缓存,默认为0
keepcache=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
#基础源
yuminstallwget‐y
rm‐rf/etc/yum.repos.d/*
wget‐O/etc/yum.repos.d/CentOS‐Base.repohttp://mirrors.aliyun.com/repo/Centos‐7.repo
#openstackmitaka源
yuminstallcentos‐release‐openstack‐mitaka‐y
#默认是centos源,建议修改成阿里云的,因为速度快
[root@contoller01yum.repos.d]#vimCentOS‐OpenStack‐mitaka.repo
#CentOS‐OpenStack‐mitaka.repo
#
#Pleaseseehttp://wiki.centos.org/SpecialInterestGroup/Cloudformore
#information
[centos‐openstack‐mitaka]
name=CentOS‐7‐OpenStackmitaka
baseurl=http://mirrors.aliyun.com//centos/7/cloud/$basearch/openstack‐mitaka/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm‐gpg/RPM‐GPG‐KEY‐CentOS‐SIG‐Cloud
#galera源
vimmariadb.repo
[mariadb]
name=MariaDB
baseurl=http://yum.mariadb.org/10.1/centos7‐amd64/
enable=1
gpgcheck=1
gpgkey=https://yum.mariadb.org/RPM‐GPG‐KEY‐MariaDB
评论1
最新资源