diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2010-01-24 18:47:00 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-01-24 18:47:00 +0000 |
commit | 7c6c1e10f3cc62acc919123d0067a8a9720aeffa (patch) | |
tree | a6f6cb0cc17d41e6ccbc27c2e9f986df2e37c67d /doc/unsorted/development_writing_plugins.txt | |
parent | e3bd887d601dad1be9352768206cbb45a91a8cc7 (diff) | |
download | bcfg2-7c6c1e10f3cc62acc919123d0067a8a9720aeffa.tar.gz bcfg2-7c6c1e10f3cc62acc919123d0067a8a9720aeffa.tar.bz2 bcfg2-7c6c1e10f3cc62acc919123d0067a8a9720aeffa.zip |
doc: Add a lot more unsorted stuff from the wiki
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5703 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'doc/unsorted/development_writing_plugins.txt')
-rw-r--r-- | doc/unsorted/development_writing_plugins.txt | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/doc/unsorted/development_writing_plugins.txt b/doc/unsorted/development_writing_plugins.txt new file mode 100644 index 000000000..89b1af28a --- /dev/null +++ b/doc/unsorted/development_writing_plugins.txt @@ -0,0 +1,77 @@ +.. -*- mode: rst -*- + +.. _unsorted-development_writing_plugins: + +=============== +Writing Plugins +=============== + +Server Plugin Types +=================== + +Generator +--------- + +Generator plugins contribute to literal client configurations + +Structure +--------- + +Structure Plugins contribute to abstract client configurations + +Metadata +-------- + +Signal metadata capabilities + +Connector +--------- + +Connector Plugins augment client metadata instances + +Probing +------- + +Signal probe capability + +Statistics +---------- + +Signal statistics handling capability + +Decision +-------- + +Signal decision handling capability + +Version +------- + +Interact with various version control systems + +Writing Server Plugins +====================== + +Metadata +-------- + +If you would like to define your own Metadata plugin (to extend/change functionality of the existing Metadata plugin), here are the steps to do so. We will call our new plugin `MyMetadata`. + +#. Add MyMetadata.py + + .. code-block:: python + + __revision__ = '$Revision$' + + import Bcfg2.Server.Plugins.Metadata + + class MyMetadata(Bcfg2.Server.Plugins.Metadata.Metadata): + '''This class contains data for bcfg2 server metadata''' + __version__ = '$Id$' + __author__ = 'bcfg-dev@mcs.anl.gov' + + def __init__(self, core, datastore, watch_clients=True): + Bcfg2.Server.Plugins.Metadata.Metadata.__init__(self, core, datastore, watch_clients) + +#. Add MyMetadata to `src/lib/Server/Plugins/__init__.py` +#. Replace Metadata with MyMetadata in the plugins line of bcfg2.conf |