Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gambol99/puppet-enc
Puppet External Node Classifier
https://github.com/gambol99/puppet-enc
Last synced: 25 days ago
JSON representation
Puppet External Node Classifier
- Host: GitHub
- URL: https://github.com/gambol99/puppet-enc
- Owner: gambol99
- Created: 2014-03-12T12:21:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-15T14:29:10.000Z (almost 11 years ago)
- Last Synced: 2024-04-17T15:10:31.489Z (9 months ago)
- Language: Ruby
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Puppet External Node Classifer
=========================Puppet-enc is a external node classifier for puppet. The classification file itself is a standard yaml file
---
stats:
last_updated: "323232323"
groups:
puppet::default:
puppet:
all:
base:
puppet:
default:
ntp:
base:
nodes:
perdb301-hsk.mydomain.com:
parameters: {}
classes:
base::default: {}
opennebula::vm: {}
mol::contentdb:
groups:
puppet::default: {}
graphite301-hsk.mydomain.com:
parameters: {}
classes:
base::default: {}
mol::graphite: {}
opennebula::vm: {}
groups:
puppet::default: {}
All the nodes a enclosed in the nodes array. The classifier also supports notion of groups which are merged into the final classification; note: the merging supports bottom down priority, i.e. the attributes of the nodes override attributes from the inherited group.bin/classify.rb
===============The classifier comes classify.rb; example usage
:puppet.conf
[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/sslnode_terminus = exec
external_nodes = /etc/puppet/bin/classify.rb -q -HCommand line;
# classify.rb -H myhost.fqdn