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

发布网友 发布时间:2022-04-19 14:28

我来回答

1个回答

热心网友 时间:2022-04-10 07:07

下载要安装的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-procts]
name=Puppet Labs Procts - $basearch
baseurl=http://yum.puppetlabs.com/%DIST%/%RELEASEVER%/procts/$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-procts-source]
name=Puppet Labs Procts - $basearch - Source
baseurl=http://yum.puppetlabs.com/%DIST%/%RELEASEVER%/procts/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
声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com