-
Notifications
You must be signed in to change notification settings - Fork 5
add_node.py
- add_node.py -h
usage: add_node.py [-h] -a {append,new} -n PUPPET_NODE [-c PUPPET_CLASSES]
[-p PUPPET_PARAM] [-i PUPPET_INHERIT] [-e ENVIRONMENT]
Add Nodes To Mongodb ENC
optional arguments:
-h, --help show this help message and exit
-a {append,new}, --action {append,new}
Append Or Recreate Default Node
-n PUPPET_NODE, --node PUPPET_NODE
Puppet Node Hostname
-c PUPPET_CLASSES, --class PUPPET_CLASSES
Can specify multiple classes each with -c
-p PUPPET_PARAM, --param PUPPET_PARAM
Can specify multiple paramaters each with -p
-i PUPPET_INHERIT, --inherit PUPPET_INHERIT
Define a node to inherit classes from
-e ENVIRONMENT, --environment ENVIRONMENT
Optional, defaults to "production"
-
-a --action {append, new} : "new" - creates a new node in mongodb. "append" will add classes, add parameters or change the inheritance node.
-
-n --node : This is going to be the puppet node you are adding or updating
-
-c --class : This is going to the class which should be added to the node. -c --class needs to be called before each class (Example: -c base -c sudoers -c nagios)
-
-p --param : This is going to be the parameter or parameters which are node specific. Also be aware that currently parameters are not inherited. Just like --class -p --param must be called before each parameter.(Example: -p ntpserver=10.10.10.10 -p apturl=http://mirrors.ubuntu.org).
-
-i --inherit : This is going to be the node which is inherited by the node being added or appended. If not specified the node "default" will be inherited by default (Example: -i default).
-
-e --environment : This is going to be the environment value associated with the node. By default the environment "production" is assigned to every node when added. If specified do so to override the "production" environment value (Example: -e development).