ncsa / puppetserver-enc

Setup and manage a database to use for Puppet External Node Classifier
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Puppetserver (ENC) External Node Classifier

Setup and manage a database to use for Puppet External Node Classifier

Dependencies

Required before install:

These will be fetched automatically during install:

Installation

  1. export QS_REPO=https://github.com/ncsa/puppetserver-enc.git
  2. curl https://raw.githubusercontent.com/andylytical/quickstart/master/quickstart.sh | bash

Customizable Install Options

Quickstart

  1. admin.py --help

Create DB

  1. vim tables.yaml
  2. admin.py --init

Add self to DB

  1. admin.py --add --fqdn $(hostname -f) $(hostname -f)

Add multiple nodes to DB

Using a CSV file
  1. admin.py --mkcsv > source.csv
  2. vim source.csv
  3. admin.py --add --csv source.csv
    Using a Yaml file
  4. admin.py --mkyaml > source.yaml
  5. vim source.yaml
  6. admin.py --add --yaml source.yaml

Test puppet lookup of FQDN

List all nodes in DB

Working with multiple nodes

All commands --add, --change, --del support input from a yaml or a csv file. This is the best way to specify multiple nodes.