Download the official OpenStack document for installation (Icehouse Juno Kilo), according to the official documentation, download two RPM packages, for example, I want to build OpenStack Icehouse on centos6.5, need two installation packages, EPEL-RELEASE-6.8-NOARCH.RPM source package, in one is rdo-release--icehouse-4-src.rpm opened under window. Check the configuration profile inside, there are Foreman.repo Puppetlabs.repo Rdo-release.repo find their corresponding, there is a epel-release-6.8-noarch.rpm inside there are two profiles, open, Epel.repo epel-testing.repo Find the corresponding download version.
Then, build the local CentOS and query the CentOS version information.
Here's how:
The configuration information for the foreman is as follows:
[Foreman]name=foreman stablebaseurl=http://yum.theforeman.org/releases/1.5/%fdist%%releasever%/x86_64enabled= 1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-foreman[foreman-source]name=foreman stable-sourcebaseurl= http://yum.theforeman.org/releases/1.5/%FDIST%%RELEASEVER%/sourceenabled=0gpgcheck=1gpgkey=file:///etc/pki/ Rpm-gpg/rpm-gpg-key-foreman[foreman-plugins]name=foreman stable-pluginsbaseurl=http://yum.theforeman.org/ plugins/1.5/%fdist%%releasever%/x86_64enabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-foreman[ Foreman-plugins-source]name=foreman Stable-plugins sourcebaseurl=http://yum.theforeman.org/plugins/1.5/%fdist%% releasever%/sourceenabled=0gpgcheck=0gpgkey=
See two BaseURL:
http://yum.theforeman.org/releases/1.5/
http://yum.theforeman.org/plugins/1.5/
After opening, find the corresponding version number, EL6
Download to local, execute the following command:
Cd/home/mkdir foremancd Foreman wget-s-c-r-np-l wget-s-c-r-np-l
The configuration information for the Puppettlabs.repo is as follows:
puppetlabs-products]name=puppet labs products - $basearchbaseurl =http://yum.puppetlabs.com /%dist%/%releasever%/products/$basearchgpgkey =file:///etc/pki/rpm-gpg/rpm-gpg-key-puppetlabsenabled=1gpgcheck= 1[puppetlabs-deps]name=puppet labs dependencies - $basearchbaseurl =http:// yum.puppetlabs.com/%dist%/%releasever%/dependencies/$basearchgpgkey =file:///etc/pki/rpm-gpg/ rpm-gpg-key-puppetlabsenabled=1gpgcheck=1[puppetlabs-devel]name=puppet labs devel - $ basearchbaseurl=http://yum.puppetlabs.com/%dist%/%releasever%/devel/$basearchgpgkey =file:///etc/pki/rpm-gpg/ rpm-gpg-key-puppetlabsenabled=0gpgcheck=1[puppetlabs-products-source]name=puppet labs products - $basearch - sourcebaseurl=http://yum.puppetlabs.com/%dist%/%releasever%/products/srpmsgpgkey= file:///etc/pki/rpm-gpg/rpm-gpg-key-puppetlabsfailovermethod=priorityenabled=0gpgcheck=1[ Puppetlabs-deps-source]name=puppet labs source dependencies - $basearch - sourcebaseurl=http://yum.puppetlabs.com/%dist%/%releasever%/dependencies/ Srpmsgpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-puppetlabsenabled=0gpgcheck=1[puppetlabs-devel-source]name= puppet labs devel - $basearch - sourcebaseurl=http://yum.puppetlabs.com/%dist%/% Releasever%/devel/srpmsgpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-puppetlabsenabled=0gpgcheck=1
View to BaseURL:
Then find the corresponding version number/EL/6
Download to local, execute the following command: Cd/home/mkdir puppetlabscd puppetlabs wget-s-c-r-np-l
The configuration information for the Rdo-release.repo is as follows:
[Openstack-icehouse]name=openstack Icehouse repositorybaseurl=http://repos.fedorapeople.org/repos/openstack/ openstack-icehouse/%dist%-%releasever%/enabled=1skip_if_unavailable=0gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-rdo-icehousepriority=98
View the BaseURL as:
http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/
After opening, find the corresponding version, EPEL6
Download to local, execute the following command:
Cd/home/mkdir Icehouse CD Icehouse
The configuration information for the
Epel.repo is as follows:
epel]name=extra packages for enterprise linux 6 - $basearch #baseurl=http:// download.fedoraproject.org/pub/epel/6/$basearchmirrorlist =https://mirrors.fedoraproject.org/metalink?repo= Epel-6&arch= $basearchfailovermethod =priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/ rpm-gpg-key-epel-6[epel-debuginfo]name=extra packages for enterprise linux 6 - $basearch - debug#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/ Debugmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch= $basearchfailovermethod = priorityenabled=0gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6gpgcheck=1[epel-source]name=extra packages for enterprise linux 6 - $basearch - source#baseurl=http:// download.fedoraproject.org/pub/epel/6/srpmsmirrorlist=https://mirrors.fedoraproject.org/metalink?repo= Epel-source-6&arch= $basearchfailovermethod =priorityeNabled=0gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6gpgcheck=1
View the Baserul as:
http://download.fedoraproject.org/pub/epel/6/
Open without looking for version.
Download to local, execute the following command:
Cd/homemkdir EPELCD epelwget-s-c-r-np-l
To view Epel-testing.repo configuration information:
[epel-testing]name=extra packages for enterprise linux 6 - testing - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/testing/6/$basearchmirrorlist =https:// Mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch= $basearchfailovermethod =priorityenabled= 0gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6[epel-testing-debuginfo]name=extra packages for Enterprise Linux 6 - Testing - $basearch - debug# baseurl=http://download.fedoraproject.org/pub/epel/testing/6/$basearch/debugmirrorlist=https:// Mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch= $basearchfailovermethod =priorityenabled= 0gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6gpgcheck=1[epel-testing-source]name=extra packages for Enterprise Linux 6 - Testing - $basearch - source# Baseurl=http://download.fedoraproject.org/pub/epel/testing/6/srpmsmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$ Basearchfailovermethod=priorityenabled=0gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6gpgcheck=1
View the BaseURL as:
http://download.fedoraproject.org/pub/epel/testing/6/
Open without viewing the version. download to local execute the following command: cd /home/ mkdir epel-testing cd epel-testing wget -S -c -r -np -L Build a local CentOS source, execute the following command: cd / Home/mkdir centos cd centos wget -s -c -r -np -L after downloading, execute the following command, delete the unwanted files, delete the/xen4/directory under centos, Execute the following command: (delete unwanted files) find ./ -name "index.html*" | xargs rm -rf find ./ -name fedora-20 | xargs rm -rf find ./ - name fedora-19 | xargs rm -rf find ./ -name Isos | xargs rm -rf find ./ -name i386 | xargs rm -rf createrepo -p -d -o /home/centos/ createrepo -p -d -o /home/epel/ createrepo -p -d -o /home/epel-testing/ createrepo -p -d -o /home/foreman/ createrepo -p -d -o /home/puppetlabs createrepo -p -d -o /home/icehouse/
To install the APACHE2 service:
Yum install-y httpd cd/var/www/html/mkdir centos epel foreman epel-testing puppetlabs Icehouse Mount--bind/home/cento S/var/www/html/centosmount--bind/home/epel/var/www/html/epelmount--bind/home/epel-testing/var/www/html/ epel-testing Mount--bind/home/icehouse/var/www/html/icehousemount--bind/home/foreman/var/www/html/foreman Mount- -bind/home/puppetlabs/var/www/html/puppetlabs Start httpd Services: Service httpd start Chkconfig httpd on
Client configuration: Cd/etc/yum.repos.d/vim Centos-base.repo [Base]name=base baseurl=gpgcheck=0enabled=1[update]name=update baseurl=gpgcheck=0enabled=1 vim Rdo-release.repo [Openstack-icehouse]name=icehousebaseurl=gpgcheck=0enabled=1vim Foreman.repo [Foreman]name=foremanbaseurl=enabled=1gpgcheck=0vim puppetlabs.repo[puppetlabs]name= Puppetlabsbaseurl=gpgcheck=0enabled=1vim Epel-testing.repo [epel-testing]name=epel-testingbaseurl=gpgcheck= 0enabled=1 Yum Clean all yum makecache yum update
This article from "Gaogaozi" blog, declined reprint!
How do I build a local Yum source for each version of OpenStack?