Generator plugins contribute to literal client configurations
Structure Plugins contribute to abstract client configurations
Signal metadata capabilities
Connector Plugins augment client metadata instances
Signal probe capability
Signal statistics handling capability
Signal decision handling capability
Interact with various version control systems
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
__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