yape_node_classifier.py - drwahl/yape GitHub Wiki

yape_node_classifier.py

  • yape_node_classifier.py

This script is the script which defined in the puppet.conf file. This script will do the following:

  • Query mongodb for the node specified.
  • Look for the inherit field and query mongodb for the classes defined in the inherit node and the nodes inherited by those nodes.
  • Output the classes, environment, and parameters for the node specified at the command line.

Example Output:

  • Default Node
classes:
  base: ''
  sudoers: ''
  • Mongodb generic node which inherits the default node
classes:
  base: ''
  mongodb: ''
  sudoers: ''
environment: production
  • Specific mongodb node which inherits the generic mongodb node (which inherits the default node) and has an environment of production defined and node specific parameters specified:
classes:
  base: ''
  mongodb: ''
  sudoers: ''
environment: production
parameters:
  ntpserver: 10.10.10.10
⚠️ **GitHub.com Fallback** ⚠️