root / doc / devnotes.rst @ d2baa21d
History | View | Annotate | Download (2 kB)
1 |
Developer notes |
---|---|
2 |
=============== |
3 |
|
4 |
Build dependencies |
5 |
------------------ |
6 |
|
7 |
Most dependencies from :doc:`install-quick`, plus: |
8 |
|
9 |
- `GNU make <http://www.gnu.org/software/make/>`_ |
10 |
- `GNU tar <http://www.gnu.org/software/tar/>`_ |
11 |
- `Gzip <http://www.gnu.org/software/gzip/>`_ |
12 |
- `Docbook tools <http://sources.redhat.com/docbook-tools/>`_ |
13 |
(docbook2html and docbook2man) |
14 |
- `python-sphinx <http://sphinx.pocoo.org/>`_ |
15 |
(tested with version 0.6.1) |
16 |
- `graphviz <http://www.graphviz.org/>`_ |
17 |
|
18 |
To generate unittest coverage reports (``make coverage``), `coverage |
19 |
<http://pypi.python.org/pypi/coverage>`_ needs to be installed. |
20 |
|
21 |
|
22 |
Configuring for development |
23 |
--------------------------- |
24 |
|
25 |
.. highlight:: sh |
26 |
|
27 |
Run the following command (only use ``PYTHON=...`` if you need to use a |
28 |
different python version):: |
29 |
|
30 |
./autogen.sh && \ |
31 |
./configure PYTHON=python2.4 \ |
32 |
--prefix=/usr/local --sysconfdir=/etc --localstatedir=/var |
33 |
|
34 |
|
35 |
Packaging notes |
36 |
=============== |
37 |
|
38 |
Ganeti is mostly developped and tested on `Debian |
39 |
<http://www.debian.org/>`_-based distributions, while still keeping |
40 |
adoptability to other Linux distributions in mind. |
41 |
|
42 |
The ``doc/examples/`` directory contains a number of potentially useful |
43 |
scripts and configuration files. Some of them might need adjustment |
44 |
before use. |
45 |
|
46 |
``daemon-util`` |
47 |
--------------- |
48 |
|
49 |
This script, in the source code as ``daemons/daemon-util.in``, is used |
50 |
to start/stop Ganeti and do a few other things related to system |
51 |
daemons. Is is recommended to use ``daemon-util`` also from the system's |
52 |
init scripts. That way the code starting and stopping daemons is shared |
53 |
and future changes have to be made in only one place. |
54 |
|
55 |
``daemon-util`` reads extra arguments from variables (``*_ARGS``) in |
56 |
``/etc/default/ganeti``. When modifying ``daemon-util``, keep in mind to |
57 |
not remove support for the ``EXTRA_*_ARGS`` variables for starting |
58 |
daemons. Some parts of Ganeti use them to pass additional arguments when |
59 |
starting a daemon. |
60 |
|
61 |
The ``reload_ssh_keys`` function can be adjusted to use another command |
62 |
for reloading the OpenSSH daemon's host keys. |
63 |
|
64 |
.. vim: set textwidth=72 : |