Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Imports hosts and facts from PuppetDB into Hostbase

License

Notifications You must be signed in to change notification settings

shift31/hostbase-importer-puppetdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hostbase PuppetDB Importer

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

About

Imports hosts and facts from PuppetDB into Hostbase

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages