Sophie

Sophie

distrib > Fedora > 17 > x86_64 > by-pkgid > b50d8ee6d7871fcc13c0677a9364ed59 > files > 508

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>Deps &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="Plugins" href="../index.html" />
    <link rel="next" title="Account" href="../generators/account.html" />
    <link rel="prev" title="Defaults" href="defaults.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="../generators/account.html" title="Account"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="defaults.html" title="Defaults"
             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" >The Bcfg2 Server</a> &raquo;</li>
          <li><a href="../index.html" accesskey="U">Plugins</a> &raquo;</li> 
      </ul>
    </div>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="deps">
<span id="server-plugins-structures-deps"></span><h1>Deps<a class="headerlink" href="#deps" title="Permalink to this headline">¶</a></h1>
<p>The Deps Plugin allows you to make a series of assertions like &#8220;Package
X requires Package Y (and optionally also Package Z etc). Note that only
configuration entries, like Package, Path, etc can be used. Groupings
(like Bundle) are not supported.</p>
<p>Here are some examples:</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">These particular examples are not extremely useful when using the
Packages plugin as Packages will handle the dependency resolution for
you. However, there are certainly other use cases for the Deps plugin.</p>
</div>
<div class="section" id="deps-bcfg2-xml">
<h2>Deps/bcfg2.xml<a class="headerlink" href="#deps-bcfg2-xml" title="Permalink to this headline">¶</a></h2>
<div class="highlight-xml"><div class="highlight"><pre><span class="nt">&lt;Dependencies</span> <span class="na">priority=</span><span class="s">&#39;0&#39;</span><span class="nt">&gt;</span>
    <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;bcfg2&#39;</span><span class="nt">&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;python-lxml&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;isprelink&#39;</span><span class="nt">/&gt;</span>
    <span class="nt">&lt;/Package&gt;</span>
<span class="nt">&lt;/Dependencies&gt;</span>
</pre></div>
</div>
<p>This basically causes any configuration specification that includes
Package bcfg2 to include python-lxml and isprelink, in a second base
clause.</p>
</div>
<div class="section" id="deps-bcfg2-server-xml">
<h2>Deps/bcfg2-server.xml<a class="headerlink" href="#deps-bcfg2-server-xml" title="Permalink to this headline">¶</a></h2>
<div class="highlight-xml"><div class="highlight"><pre><span class="nt">&lt;Dependencies</span> <span class="na">priority=</span><span class="s">&#39;0&#39;</span><span class="nt">&gt;</span>
    <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;bcfg2-server&#39;</span><span class="nt">&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;python-cheetah&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;gamin-python&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;sqlite&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;python-sqlite&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;Django&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;mod_python&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;graphviz&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;xorg-x11-font-utils&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;chkfontpath&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;ttmkfdir&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;xorg-x11-xfs&#39;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;Package</span> <span class="na">name=</span><span class="s">&#39;urw-fonts&#39;</span><span class="nt">/&gt;</span>
    <span class="nt">&lt;/Package&gt;</span>
<span class="nt">&lt;/Dependencies&gt;</span>
</pre></div>
</div>
<p>This states that the bcfg2-server package (it&#8217;s a separate package on
some distros) depends on a long list of other packages.</p>
</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="#">Deps</a><ul>
<li><a class="reference internal" href="#deps-bcfg2-xml">Deps/bcfg2.xml</a></li>
<li><a class="reference internal" href="#deps-bcfg2-server-xml">Deps/bcfg2-server.xml</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="defaults.html"
                        title="previous chapter">Defaults</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="../generators/account.html"
                        title="next chapter">Account</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../../../_sources/server/plugins/structures/deps.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="../generators/account.html" title="Account"
             >next</a> |</li>
        <li class="right" >
          <a href="defaults.html" title="Defaults"
             >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" >The Bcfg2 Server</a> &raquo;</li>
          <li><a href="../index.html" >Plugins</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>