https://github.com/shift31/hostbase-importer-puppetdb
Imports hosts and facts from PuppetDB into Hostbase
https://github.com/shift31/hostbase-importer-puppetdb
Last synced: 6 months ago
JSON representation
Imports hosts and facts from PuppetDB into Hostbase
- Host: GitHub
- URL: https://github.com/shift31/hostbase-importer-puppetdb
- Owner: shift31
- License: mit
- Archived: true
- Created: 2014-02-17T05:02:44.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-02T05:21:22.000Z (over 11 years ago)
- Last Synced: 2025-07-18T07:24:34.399Z (11 months ago)
- Language: PHP
- Size: 199 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`