Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates > by-pkgid > b50d8ee6d7871fcc13c0677a9364ed59 > files > 326

bcfg2-doc-1.3.0-1.fc17.noarch.rpm



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Using Bcfg2 With CentOS &mdash; Bcfg2 1.3.0 documentation</title>
    
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '1.3.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <script type="text/javascript" src="../../_static/sidebar.js"></script>
    <link rel="shortcut icon" href="../../_static/favicon.ico"/>
    <link rel="top" title="Bcfg2 1.3.0 documentation" href="../../index.html" />
    <link rel="up" title="Guides" href="../guides.html" />
    <link rel="next" title="Version control systems" href="vcs.html" />
    <link rel="prev" title="Ubuntu" href="ubuntu.html" />
 
<link rel="stylesheet" href="../../_static/bcfg2.css" type=""/>

  </head>
  <body>

<div style="text-align: left; padding: 10px 10px 15px 15px">
<a href="../../index.html"><img src="../../_static/bcfg2_logo.png" border="0" alt="sampledoc"/></a>
</div>

    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="vcs.html" title="Version control systems"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="ubuntu.html" title="Ubuntu"
             accesskey="P">previous</a> |</li>
	<li><a href="../../index.html">home</a> |&nbsp;</li>
	<!--<li><a href="../../search.html">search</a> |&nbsp;</li>-->
	<li><a href="../../help/index.html">help</a> |&nbsp;</li>
	<li><a href="../../contents.html">documentation </a> &raquo;</li>

          <li><a href="../../contents.html" >Bcfg2 documentation 1.3.0</a> &raquo;</li>
          <li><a href="../index.html" >Appendix</a> &raquo;</li>
          <li><a href="../guides.html" accesskey="U">Guides</a> &raquo;</li> 
      </ul>
    </div>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="using-bcfg2-with-centos">
<span id="getting-started-using-bcfg2-with-centos"></span><h1>Using Bcfg2 With CentOS<a class="headerlink" href="#using-bcfg2-with-centos" title="Permalink to this headline">¶</a></h1>
<p>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.</p>
<div class="section" id="from-source">
<h2>From Source<a class="headerlink" href="#from-source" title="Permalink to this headline">¶</a></h2>
<div class="section" id="install-prerequisities">
<h3>Install Prerequisities<a class="headerlink" href="#install-prerequisities" title="Permalink to this headline">¶</a></h3>
<p>While you can go about building all these things from source, this
how to will try and meet the dependencies using packages from <a class="reference external" href="http://fedoraproject.org/wiki/EPEL">EPEL</a>
or <a class="reference external" href="https://rpmrepo.org/RPMforge">RPMforge</a>. The <em>el5</em> package should be compatible with CentOS 5.x.</p>
<dl class="docutils">
<dt><a class="reference external" href="http://fedoraproject.org/wiki/EPEL">EPEL</a> for 5.x ::</dt>
<dd>[<a class="reference external" href="mailto:root&#37;&#52;&#48;centos">root<span>&#64;</span>centos</a> ~]# rpm -Uvh <a class="reference external" href="http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm">http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm</a></dd>
<dt><a class="reference external" href="http://fedoraproject.org/wiki/EPEL">EPEL</a> for 6.x ::</dt>
<dd>[<a class="reference external" href="mailto:root&#37;&#52;&#48;centos">root<span>&#64;</span>centos</a> ~]# rpm -Uvh <a class="reference external" href="http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm">http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm</a></dd>
</dl>
<p><a class="reference external" href="https://rpmrepo.org/RPMforge">RPMforge</a> for 5.x</p>
<div class="highlight-python"><pre>[root@centos ~]# rpm -Uvh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm</pre>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Be careful with <a class="reference external" href="http://fedoraproject.org/wiki/EPEL/FAQ#What_about_compatibility_with_other_third_party_repositories.3F">mixing package repositories</a>.</p>
</div>
<p>Now you can install the rest of the prerequisites:</p>
<div class="highlight-python"><pre>[root@centos ~]# yum install python-genshi python-cheetah python-lxml</pre>
</div>
</div>
<div class="section" id="build-packages-from-source">
<h3>Build Packages from source<a class="headerlink" href="#build-packages-from-source" title="Permalink to this headline">¶</a></h3>
<ul>
<li><p class="first">After installing git, clone the master branch:</p>
<div class="highlight-python"><pre>[root@centos redhat]# git clone git://git.mcs.anl.gov/bcfg2.git</pre>
</div>
</li>
<li><p class="first">Install the <tt class="docutils literal"><span class="pre">fedora-packager</span></tt> package</p>
<div class="highlight-python"><pre>[root@centos ~]# yum install fedora-packager</pre>
</div>
</li>
<li><p class="first">A directory structure for the RPM build process has to be established.</p>
<div class="highlight-python"><pre>[you@centos ~]$ rpmdev-setuptree</pre>
</div>
</li>
<li><p class="first">Change to the <em>redhat</em> directory of the checked out Bcfg2 source:</p>
<div class="highlight-python"><pre>[you@centos ~]$ cd bcfg2/redhat/</pre>
</div>
</li>
<li><p class="first">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&#8217;s not recommended:</p>
<div class="highlight-python"><pre>[you@centos redhat]$ make</pre>
</div>
</li>
<li><p class="first">Now the new RPM package can be installed.  Please adjust the path to your RPM package:</p>
<div class="highlight-python"><pre>[root@centos ~]# rpm -ihv /home/YOU/rpmbuild/RPMS/noarch/bcfg2-server-1.0.0-0.2r5835.noarch.rpm</pre>
</div>
</li>
</ul>
</div>
<div class="section" id="install-packages-from-package-repository">
<h3>Install Packages from Package repository<a class="headerlink" href="#install-packages-from-package-repository" title="Permalink to this headline">¶</a></h3>
<p>To install the bcfg2-server and bcfg2 from a package repository, just
use Yum to do it:</p>
<div class="highlight-python"><pre>[root@centos ~]# yum install bcfg2-server bcfg2</pre>
</div>
<div class="toctree-wrapper compound">
</div>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Using Bcfg2 With CentOS</a><ul>
<li><a class="reference internal" href="#from-source">From Source</a><ul>
<li><a class="reference internal" href="#install-prerequisities">Install Prerequisities</a></li>
<li><a class="reference internal" href="#build-packages-from-source">Build Packages from source</a></li>
<li><a class="reference internal" href="#install-packages-from-package-repository">Install Packages from Package repository</a><ul>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="ubuntu.html"
                        title="previous chapter">Ubuntu</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="vcs.html"
                        title="next chapter">Version control systems</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../../_sources/appendix/guides/using-bcfg2-with-centos.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="vcs.html" title="Version control systems"
             >next</a> |</li>
        <li class="right" >
          <a href="ubuntu.html" title="Ubuntu"
             >previous</a> |</li>
	<li><a href="../../index.html">home</a> |&nbsp;</li>
	<!--<li><a href="../../search.html">search</a> |&nbsp;</li>-->
	<li><a href="../../help/index.html">help</a> |&nbsp;</li>
	<li><a href="../../contents.html">documentation </a> &raquo;</li>

          <li><a href="../../contents.html" >Bcfg2 documentation 1.3.0</a> &raquo;</li>
          <li><a href="../index.html" >Appendix</a> &raquo;</li>
          <li><a href="../guides.html" >Guides</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2013, Narayan Desai.
      Last updated on Mar 20, 2013.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>