summaryrefslogtreecommitdiffstats
path: root/doc/getting_started/using-bcfg2-with-centos.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/getting_started/using-bcfg2-with-centos.txt')
-rw-r--r--doc/getting_started/using-bcfg2-with-centos.txt183
1 files changed, 50 insertions, 133 deletions
diff --git a/doc/getting_started/using-bcfg2-with-centos.txt b/doc/getting_started/using-bcfg2-with-centos.txt
index 261519f68..7c452f422 100644
--- a/doc/getting_started/using-bcfg2-with-centos.txt
+++ b/doc/getting_started/using-bcfg2-with-centos.txt
@@ -1,12 +1,17 @@
.. -*- mode: rst -*-
-.. _using_bcfg2-with-centos:
+.. _EPEL: http://fedoraproject.org/wiki/EPEL
+.. _RPMForge: https://rpmrepo.org/RPMforge
+
+.. _getting_started-using_bcfg2-with-centos:
=======================
Using Bcfg2 With CentOS
=======================
-This section covers specific topics for using Bcfg2 with CentOS. Most likely the tips on this page also apply to other members of the RedHat family of Linux operating systems.
+This section covers specific topics for using Bcfg2 with CentOS. Most
+likely the tips on this page also apply to other members of the Red Hat
+family of Linux operating systems.
From Source
+++++++++++
@@ -14,149 +19,61 @@ From Source
Install Prerequisities
######################
-While you can go about building all these things from source, this how
-to will try and meet the dependencies using packages from
-rpmforge. The el5 package should be compatible with centos5. ::
+While you can go about building all these things from source, this
+how to will try and meet the dependencies using packages from EPEL_
+or RPMforge_. The *el5* package should be compatible with CentOS 5.x.
+
+EPEL_::
+
+ [root@centos ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
- [root@centos ~]# wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
- --09:51:43-- http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
- Resolving dag.wieers.com... 62.213.193.164
- Connecting to dag.wieers.com|62.213.193.164|:80... connected.
- HTTP request sent, awaiting response... 302 Found
- Location: http://rpmforge.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm [following]
- --09:51:44-- http://rpmforge.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
- Resolving rpmforge.sw.be... 130.133.35.16
- Connecting to rpmforge.sw.be|130.133.35.16|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 16697 (16K) [application/x-rpm]
- Saving to: `rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm'
+RPMforge_::
- 100%[====================================================================================================================================================================================================>] 16,697 51.6K/s in 0.3s
+ [root@centos ~]# rpm -Uvh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
- 09:51:45 (51.6 KB/s) - `rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm' saved [16697/16697]
+.. note::
- [root@centos ~]# rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
- warning: rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
- Preparing... ########################################### [100%]
- 1:rpmforge-release ########################################### [100%]
+ Be careful with `mixing package repositories
+ <http://fedoraproject.org/wiki/EPEL/FAQ#What_about_compatibility_with_other_third_party_repositories.3F>`_.
Now you can install the rest of the prerequisites::
[root@centos ~]# yum install python-genshi python-cheetah python-lxml
- Loading "fastestmirror" plugin
- Loading mirror speeds from cached hostfile
- * rpmforge: ftp-stud.fht-esslingen.de
- * base: mirrors.tummy.com
- * updates: mirror.unl.edu
- * addons: mirror.unl.edu
- * extras: mirror.hmc.edu
- Setting up Install Process
- Parsing package install arguments
- Resolving Dependencies
- --> Running transaction check
- ---> Package python-cheetah.x86_64 0:2.0.1-1.el5.rf set to be updated
- ---> Package python-genshi.x86_64 0:0.5.1-2.el5.rf set to be updated
- --> Processing Dependency: python-setuptools >= 0.6 for package: python-genshi
- ---> Package python-lxml.x86_64 0:1.3.4-1.el5.rf set to be updated
- --> Running transaction check
- ---> Package python-setuptools.noarch 0:0.6c5-2.el5 set to be updated
- --> Finished Dependency Resolution
-
- Dependencies Resolved
-
- =============================================================================
- Package Arch Version Repository Size
- =============================================================================
- Installing:
- python-cheetah x86_64 2.0.1-1.el5.rf rpmforge 424 k
- python-genshi x86_64 0.5.1-2.el5.rf rpmforge 521 k
- python-lxml x86_64 1.3.4-1.el5.rf rpmforge 1.4 M
- Installing for dependencies:
- python-setuptools noarch 0.6c5-2.el5 base 479 k
-
- Transaction Summary
- =============================================================================
- Install 4 Package(s)
- Update 0 Package(s)
- Remove 0 Package(s)
-
- Total download size: 2.8 M
- Is this ok [y/N]: y
- Downloading Packages:
- (1/4): python-setuptools- 100% |=========================| 479 kB 00:00
- (2/4): python-lxml-1.3.4- 100% |=========================| 1.4 MB 00:09
- (3/4): python-genshi-0.5. 100% |=========================| 521 kB 00:01
- (4/4): python-cheetah-2.0 100% |=========================| 424 kB 00:01
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing: python-lxml ######################### [1/4]
- Installing: python-cheetah ######################### [2/4]
- Installing: python-setuptools ######################### [3/4]
- Installing: python-genshi ######################### [4/4]
-
- Installed: python-cheetah.x86_64 0:2.0.1-1.el5.rf python-genshi.x86_64 0:0.5.1-2.el5.rf python-lxml.x86_64 0:1.3.4-1.el5.rf
- Dependency Installed: python-setuptools.noarch 0:0.6c5-2.el5
- Complete!
Build Packages from source
##########################
- * After installing subversion, check out a copy of trunk ::
+* After installing subversion, check out a copy of trunk ::
[root@centos redhat]# svn co https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2
- Install rpm-build
- [root@centos redhat]# yum install yum install rpm-build
- Loading "fastestmirror" plugin
- Loading mirror speeds from cached hostfile
- * rpmforge: ftp-stud.fht-esslingen.de
- * base: mirrors.tummy.com
- * updates: mirror.unl.edu
- * addons: mirror.unl.edu
- * extras: mirror.hmc.edu
- Setting up Install Process
- Parsing package install arguments
- Resolving Dependencies
- --> Running transaction check
- ---> Package rpm-build.x86_64 0:4.4.2-48.el5 set to be updated
- --> Finished Dependency Resolution
-
- Dependencies Resolved
-
- =============================================================================
- Package Arch Version Repository Size
- =============================================================================
- Installing:
- rpm-build x86_64 4.4.2-48.el5 base 565 k
-
- Transaction Summary
- =============================================================================
- Install 1 Package(s)
- Update 0 Package(s)
- Remove 0 Package(s)
-
- Total download size: 565 k
- Is this ok [y/N]: y
- Downloading Packages:
- (1/1): rpm-build-4.4.2-48 100% |=========================| 565 kB 00:00
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing: rpm-build ######################### [1/1]
-
- Installed: rpm-build.x86_64 0:4.4.2-48.el5
- Complete!
-
- * Change to the redhat directory of the checked out bcfg2 source::
-
- [root@centos ~]# cd bcfg2/redhat/
- [root@centos redhat]#
-
- * FIXME
-
- .. toctree::
+
+* Install the ``fedora-packager`` package ::
+
+ [root@centos ~]# yum install fedora-packager
+
+* A directory structure for the RPM build process has to be established. ::
+
+ [you@centos ~]$ rpmdev-setuptree
+
+* Change to the *redhat* directory of the checked out Bcfg2 source::
+
+ [you@centos ~]$ cd bcfg2/redhat/
+
+* In the particular directory is a Makefile which will do the job of building the RPM packages. You can do this as root, but it's not recommanded::
+
+ [you@centos redhat]$ make
+
+* Now the new RPM package can be installed. Please adjust the path to your RPM package::
+
+ [root@centos ~]# rpm -ihv /home/YOU/rpmbuild/RPMS/noarch/bcfg2-server-1.0.0-0.2r5835.noarch.rpm
+
+Install Packages from Package repository
+########################################
+
+To install the bcfg2-server and bcfg2 from a package repository, just
+use Yum to do it::
+
+ [root@centos ~]# yum install bcfg2-server bcfg2
+
+.. toctree::
:hidden: