shift31/hostbase-importer-puppetdb

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.2.0) of this package.

Import into or updates Hostbase with nodes and facts from PuppetDB

0.2.0 2015-02-02 05:21 UTC

This package is not auto-updated.

Last update: 2020-01-20 03:30:35 UTC


README

Import nodes and facts from PuppetDB into Hostbase. If any of the hosts already exist, they will be updated.

Installation

  1. Download/clone this whole repository or install with composer create-project shift31/hostbase-importer-puppetdb
  2. Run composer install from the project root

Configuration

From the project root, create a config.ini:

puppetDbBaseUrl = "http://your.puppetdb.server:8080"
hostbaseUrl = "http://your.hostbase.server"
dataCenterFact = "a_custom_fact_denoting_datacenter"
environmentFact = "a_custom_fact_denoting_environment"
factsToFilterRegex = "/id|ssh|swap|_lo|last_run|memoryfree|path|swapfree|uptime|uniqueid|clientcert/"

Run

  1. chmod +x bin/hostbase-importer-puppetdb
  2. bin/hostbase-importer-puppetdb