<!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>Web Reporting Quickstart — 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="Tools" href="../tools.html" /> <link rel="prev" title="Version control systems" href="vcs.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="../tools.html" title="Tools" accesskey="N">next</a> |</li> <li class="right" > <a href="vcs.html" title="Version control systems" accesskey="P">previous</a> |</li> <li><a href="../../index.html">home</a> | </li> <!--<li><a href="../../search.html">search</a> | </li>--> <li><a href="../../help/index.html">help</a> | </li> <li><a href="../../contents.html">documentation </a> »</li> <li><a href="../../contents.html" >Bcfg2 documentation 1.3.0</a> »</li> <li><a href="../index.html" >Appendix</a> »</li> <li><a href="../guides.html" accesskey="U">Guides</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="web-reporting-quickstart"> <span id="appendix-guides-web-reports-install"></span><h1>Web Reporting Quickstart<a class="headerlink" href="#web-reporting-quickstart" title="Permalink to this headline">ΒΆ</a></h1> <p>You need to install the bcfg2-web package that is available for your particular distribution. All packages for Fedora are in the Fedora Package Collection.</p> <p>You can find packages for CentOS and RHEL in <a class="reference external" href="http://fedoraproject.org/wiki/EPEL">EPEL</a>:</p> <div class="highlight-python"><pre>[root@system01 ~]# yum -y install bcfg2-web</pre> </div> <p>The same packages are needed for Debian/Ubuntu systems:</p> <div class="highlight-python"><pre>[root@system01 ~]# aptitude install bcfg2-web</pre> </div> <p>Add Reporting to the plugins line of <tt class="docutils literal"><span class="pre">bcfg2.conf</span></tt>. The resulting <strong>[server]</strong> section should look something like this:</p> <div class="highlight-python"><pre>[server] repository = /var/lib/bcfg2 plugins = Base,Bundler,Cfg,...,Reporting [reporting] transport = LocalFilesystem</pre> </div> <p>You then need to initialize the reporting database:</p> <div class="highlight-python"><pre>[root@system01 ~]# bcfg2-admin reports init</pre> </div> <p>Start/restart the Bcfg2 server:</p> <div class="highlight-python"><pre>[root@system01 ~]# /etc/init.d/bcfg2-server restart</pre> </div> <p>Start the Bcfg2 report collector:</p> <div class="highlight-python"><pre>[root@system01 ~]# /etc/init.d/bcfg2-report-collector start</pre> </div> <p>Run the Bcfg2 client in order to populate the statistics database.</p> <p>Copy server/statistics sections of <tt class="docutils literal"><span class="pre">bcfg2.conf</span></tt> to <tt class="docutils literal"><span class="pre">/etc/bcfg2-web.conf</span></tt> (make sure it is world-readable). You should then have something like this:</p> <div class="highlight-python"><pre>[server] repository = /var/lib/bcfg2 plugins = Base,Bundler,Cfg,...,Reporting [database] engine = sqlite3 # 'postgresql', 'mysql', 'mysql_old', 'sqlite3' or 'ado_mssql'. name = user = # Not used with sqlite3. password = # Not used with sqlite3. host = # Not used with sqlite3. port = [reporting] transport = LocalFilesystem</pre> </div> <p>Restart apache and point a browser to your Bcfg2 server.</p> <p>If using sqlite be sure the sql database file and directory containing the database are writable to apache.</p> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="vcs.html" title="previous chapter">Version control systems</a></p> <h4>Next topic</h4> <p class="topless"><a href="../tools.html" title="next chapter">Tools</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../../_sources/appendix/guides/web-reports-install.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="../tools.html" title="Tools" >next</a> |</li> <li class="right" > <a href="vcs.html" title="Version control systems" >previous</a> |</li> <li><a href="../../index.html">home</a> | </li> <!--<li><a href="../../search.html">search</a> | </li>--> <li><a href="../../help/index.html">help</a> | </li> <li><a href="../../contents.html">documentation </a> »</li> <li><a href="../../contents.html" >Bcfg2 documentation 1.3.0</a> »</li> <li><a href="../index.html" >Appendix</a> »</li> <li><a href="../guides.html" >Guides</a> »</li> </ul> </div> <div class="footer"> © 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>