shift31 / hostbase-importer-puppetdb
Import into or updates Hostbase with nodes and facts from PuppetDB
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/shift31/hostbase-importer-puppetdb
Requires
- php: >=5.3
- nategood/httpful: 0.2.*
- shift31/hostbase-api-client: 0.2.*
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
- Download/clone this whole repository or install with
composer create-project shift31/hostbase-importer-puppetdb
- 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
chmod +x bin/hostbase-importer-puppetdb
bin/hostbase-importer-puppetdb