yape.py - drwahl/yape GitHub Wiki
Overview
This script is the driver for adding, removing and modifying the Mongo database. It's purpose is to provide a user friendly interface to interact with individual nodes in the database. While this script does have the ability to be run with flags passed to it, it has been written to be able to be used by other tools that may want to do make similar interactions (e.g. WebUI).
Class Node
This object has been a little overloaded, but it is intended to parse/normalize data passed in from the CLI
init
Parameters (and their defaults):
- nodename
- nodeclass=None
- classparams=None
- nodeparam=None
- puppet_inherit=None
- environment=None
configure
verifynode
Parameters (and their defaults):
- vernode=None
parse_node_classification
Parameters (and their defaults):
- puppet_class=None
- class_params=None
- parameters=None
- environment=None
- inherit=None
update
Parameters (and their defaults):
- enc
- inherit=None
remove
Parameters (and their defaults):
- rmnode=None