Polish the docs up some more. Also make 'index.html' forward to the actual html output

This commit is contained in:
Tim Bielawa
2012-03-07 12:41:53 -05:00
parent 5e453555e3
commit baf2a05708
40 changed files with 257 additions and 6302 deletions

View File

@@ -1,78 +0,0 @@
Code
====
Taboot
------
.. automodule:: taboot
:members:
:undoc-members:
Taboot runner
-------------
.. automodule:: taboot.runner
:members:
:undoc-members:
.. _taboot.tasks:
Taboot tasks
------------
.. automodule:: taboot.tasks
:members:
AJP Tasks
^^^^^^^^^
.. automodule:: taboot.tasks.mod_jk
:members:
Command tasks
^^^^^^^^^^^^^
.. automodule:: taboot.tasks.command
:members:
Misc tasks
^^^^^^^^^^
.. automodule:: taboot.tasks.misc
:members:
Nagios tasks
^^^^^^^^^^^^
.. automodule:: taboot.tasks.nagios
:members:
Polling tasks
^^^^^^^^^^^^^
.. automodule:: taboot.tasks.poller
:members:
Puppet tasks
^^^^^^^^^^^^
.. automodule:: taboot.tasks.puppet
:members:
RPM tasks
^^^^^^^^^
.. automodule:: taboot.tasks.rpm
:members:
Service tasks
^^^^^^^^^^^^^
.. automodule:: taboot.tasks.service
:members:
Sleep tasks
^^^^^^^^^^^
.. automodule:: taboot.tasks.sleep
:members:
Yum tasks
^^^^^^^^^
.. automodule:: taboot.tasks.yum
:members:
Taboot output
-------------
.. automodule:: taboot.output
:members:
:undoc-members:

View File

@@ -1,98 +0,0 @@
Development
===========
Tools
-----
Taboot uses what is becoming a pretty standard and a quite simple
toolset.
Required Tools
``````````````
#. `python <http://www.python.org>`_ - The python programming language
#. `distutils <http://docs.python.org/lib/module-distutils.html>`_ - Python building and packaging library
#. `git <http://git.or.cz/>`_ - Source code management
#. `Func <https://fedorahosted.org/func/>`_ - The Fedora Unified Network Controller
#. `an <http://www.vim.org>`_ `editor <http://www.gnu.org/software/emacs/>`_ or `ide <http://pida.co.uk/>`_ `that <http://scribes.sourceforge.net/>`_ doesn't suck
Optional Tools
``````````````
These should be available via your package manager:
#. `rpm-build <http://www.rpm.org/max-rpm-snapshot/rpmbuild.8.html>`_ - Should be packaged in your RPM distribution
#. `pep8 <https://github.com/jcrocholl/pep8>`_ - Check your patches for pep8 compliance with ``make pep8``
Source
------
You can clone the repo via :program:`git` through the following command:::
$ git clone git://git.fedorahosted.org/Taboot.git
:pep:`0008` should be followed. This outlines the highlights that we
require above and beyond. Your code must follow this (or note why it
can't) before patches will be accepted.
* global variables should be in ALLCAPPS
* attributes should be all lowercase
* classes should be ``CamelCased``, filenames should be ``lowercase``.
* functions and methods should be lowercase with spaces replaced with _'s::
def a_test_method(self):
pass
* classes should subclass ``object`` unless it subclasses a different object::
class Person(object):
pass
class Steve(Person):
pass
* 4 spaces per indent level
* max length is 79 chars.
* single quotes preferred over double quotes.
* avoid ``from x import *`` imports unless a must use
* modules, functions, classes, and methods all must have docstrings - doc strings should be descriptive of what objects, functions, and methods do
* document any potentially confusing sections of code
* functions and methods should be broken down in such a way as to be easily understood and self contained
* use descriptive variable names, only use things like x, y, etc.. when doing integer loops and even then see if you can use more descriptive names
.. note::
The ``Makefile`` included in the root of the source distribution
includes a target called ``pep8``. Run ``make pep8`` to
automatically scan the ``taboot/`` subdirectory for violations.
Git
---
The best way to develop on Taboot is to branch feature sets. For
instance, if you were to add xml deserialization you would want to
branch locally and work on that branch.::
$ git branch
* master
$ git status
# On branch master
nothing to commit (working directory clean)
$ git branch xmldeserialization
$ git checkout xmldeserialization
Now we pretend you are all finished and have done at least one commit to the xmldeserialization branch.::
$ git-format-patch master
0001-created-initial-classes.patch
0002-added-in-documentation.patch
$
You now have patch sets which you can send in for perusal and
acceptance. Open a new ticket in our issue tracker or attach them to
an existing ticket.

View File

@@ -50,22 +50,57 @@ Requirements are extremely minimal.
If you are running python 2.6 on the **overlord** machine, you will
need:
* paramiko
* python-jinja2
* PyYAML (if using playbooks)
* ``paramiko``
* ``PyYAML``
* ``Asciidoc`` (for building documentation)
If you are running less than Python 2.6, you will also need
If you are running less than Python 2.6, you will also need:
* the Python 2.4 or 2.5 backport of the multiprocessing module
* simplejson
* The Python 2.4 or 2.5 backport of the multiprocessing module
* `Installation and Testing Instructions <http://code.google.com/p/python-multiprocessing/wiki/Install>`_
* ``simplejson``
On the managed nodes, to use templating, you will need:
* python-jinja2 (you can install this with ansible)
* ``python-jinja2`` (you can install this with ansible)
Getting Ansible
```````````````
Contents:
Tagged releases are available as tar.gz files from the Ansible github
project page:
* `Ansible/downloads <https://github.com/ansible/ansible/downloads>`_
You can also clone the git repository yourself and install Ansible in
one of two ways:
Python Distutils
++++++++++++++++
You can install Ansible using Python Distutils::
$ git clone git://github.com/ansible/ansible.git
$ cd ./ansible
$ sudo make install
Via RPM
+++++++
In the future, pre-built RPMs may be available. Until that time you
can use the ``make rpm`` command::
$ git clone git://github.com/ansible/ansible.git
$ cd ./ansible
$ make rpm
$ sudo rpm -Uvh ~/rpmbuild/RPMS/noarch/ansible-1.0-1.noarch.rpm
Contents
========
.. toctree::
:maxdepth: 3
@@ -75,15 +110,17 @@ Contents:
patterns
modules
playbooks
examples
api
communicate
examples
man
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Communicate or Get Involved
===========================
* Join the `ansible-project mailing list <http://groups.google.com/group/ansible-project>`_ on Google Groups
* Join `#ansible <irc://irc.freenode.net/#ansible>`_ on the `freenode IRC network <http://freenode.net/>`_
* Visit the `project page <https://github.com/ansible/ansible>`_ on Github
- View the `issue tracker <https://github.com/ansible/ansible/issues>`_

View File

@@ -1,56 +0,0 @@
Install
=======
From Yum
--------
Taboot is in the Fedora package repositories. Installing it should be as simple as::
sudo yum install python-taboot
From Source
-----------
You'll need these dependencies to build/install:
#. `python <http://www.python.org>`_ - The python programming language along with python-setuptools
#. `distutils <http://docs.python.org/lib/module-distutils.html>`_ - Python building and packaging library
Building documentation requires some more deps. These are **required**
if you're building RPMs, and optional if you're installing manually:
#. python-sphinx
#. asciidoc
#. libxslt
Building RPMs from source
`````````````````````````
This is the recommended installation method if you're pulling Taboot
from source::
make rpm
sudo yum localinstall /path/to/rpm
Installing From source
``````````````````````
I **don't** recommend this. But if you're dead set on installing
directly from source you still can. This calls the python
``distutils`` installer directly::
sudo make install
If you wish to build and install the optional documentation you'll
need some additional packages so it can be built fully. Install the
documentation with this command::
sudo make installdocs
Uninstall everything with::
sudo make uninstall

View File

@@ -5,12 +5,17 @@ Man Pages
Ansile ships with a handfull of manpages to help you on your journey.
taboot(1)
---------
ansible(1)
----------
`View taboot.1 <man/taboot.1.html>`_
* `View ansible.1 <man/ansible.1.html>`_
taboot-tasks(5)
---------------
ansible-modules(5)
------------------
`View taboot-tasks.5 <man/taboot-tasks.5.html>`_
* `View ansible-modules.5 <man/ansible-modules.5.html>`_
ansible-playbook(5)
-------------------
* `View ansible-playbook.5 <man/ansible-playbook.5.html>`_

View File

@@ -1,16 +0,0 @@
.. _tasks:
Tasks
-----
All the built-in tasks are documented here.
.. include:: tasks/command.rst
.. include:: tasks/service.rst
.. include:: tasks/puppet.rst
.. include:: tasks/nagios.rst
.. include:: tasks/sleep.rst
.. include:: tasks/yum.rst
.. include:: tasks/rpm.rst
.. include:: tasks/mod_jk.rst
.. include:: tasks/misc.rst