为了账号安全,请及时绑定邮箱和手机立即绑定

如何搭建搭建各个版本的openstack的本地yum源?

/ 猿问

如何搭建搭建各个版本的openstack的本地yum源?

千万里不及你 2018-12-15 15:11:42

如何搭建搭建各个版本的openstack的本地yum源


查看完整描述

1 回答

?
海绵宝宝撒

下载要安装的openstack的官方文档(icehouse juno kilo),根据官方文档,下载两个rpm包,例如我想在centos6.5上搭建openstack icehouse,需要两个安装包,epel-release-6.8-noarch.rpm源包,在一个是rdo-release--icehouse-4-src.rpm在window下打开。查看里面的配置配置文件,有foreman.repo puppetlabs.repo rdo-release.repo 找到他们对应的下载地址,还有一个就是epel-release-6.8-noarch.rpm 里面有两个配置文件,打开,epel.repo epel-testing.repo 找到对应的下载版本。
然后是搭建本地的centos,查询centos版本信息。
具体操作如下:
foreman的配置信息如下:
[foreman]
name=Foreman stable
baseurl=http://yum.theforeman.org/releases/1.5/%FDIST%%RELEASEVER%/x86_64
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-foreman

[foreman-source]
name=Foreman stable - source
baseurl=http://yum.theforeman.org/releases/1.5/%FDIST%%RELEASEVER%/source
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-foreman

[foreman-plugins]
name=Foreman stable - plugins
baseurl=http://yum.theforeman.org/plugins/1.5/%FDIST%%RELEASEVER%/x86_64
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-foreman

[foreman-plugins-source]
name=Foreman stable - plugins source
baseurl=http://yum.theforeman.org/plugins/1.5/%FDIST%%RELEASEVER%/source
enabled=0
gpgcheck=0
gpgkey=

查看有两个baseurl:

http://yum.theforeman.org/releases/1.5/
http://yum.theforeman.org/plugins/1.5/
打开之后找到对应的版本号,el6

下载到本地,执行如下命令:
cd /home/
mkdir foreman
cd foreman
wget -S -c -r -np -L

wget -S -c -r -np -L

puppettlabs.repo 的配置信息如下:
puppetlabs-products]
name=Puppet Labs Products - $basearch
baseurl=http://yum.puppetlabs.com/%DIST%/%RELEASEVER%/products/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1

[puppetlabs-deps]
name=Puppet Labs Dependencies - $basearch
baseurl=http://yum.puppetlabs.com/%DIST%/%RELEASEVER%/dependencies/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1

[puppetlabs-devel]
name=Puppet Labs Devel - $basearch
baseurl=http://yum.puppetlabs.com/%DIST%/%RELEASEVER%/devel/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=0
gpgcheck=1

[puppetlabs-products-source]
name=Puppet Labs Products - $basearch - Source
baseurl=http://yum.puppetlabs.com/%DIST%/%RELEASEVER%/products/SRPMS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
failovermethod=priority
enabled=0
gpgcheck=1

[puppetlabs-deps-source]
name=Puppet Labs Source Dependencies - $basearch - Source
baseurl=http://yum.puppetlabs.com/%DIST%/%RELEASEVER%/dependencies/SRPMS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=0
gpgcheck=1

[puppetlabs-devel-source]
name=Puppet Labs Devel - $basearch - Source
baseurl=http://yum.puppetlabs.com/%DIST%/%RELEASEVER%/devel/SRPMS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=0
gpgcheck=1



查看完整回答
反对 回复 2019-01-19

添加回答

回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信