This module sets up puppetdb-rundeck to run under passenger and expose all host data in PuppetDB, incuding fact, to rundeck.
with_sinatra
: Manage sinatra gem (default true)approot
: Application rootservername
: Apache server nameport
: Port (default 8888)puppetdb_port
: PuppetDB port (default 8080)puppetdb_host
: PuppetDB host (default localhost)owner
: Ownership of app files (apache user)group
: Group of app files (apache group)
Based on the project https://github.com/martin2110/puppetdb-rundeck, modified to expose facts and add documentation.
Enhanced to expose facter data and use the new PuppetDB2 API https://github.com/sirloper/puppetdb2-rundeck
sinatra app that glues puppetdb and rundeck together.
set host_uri and port in the script
class { 'puppetdb_rundeck': }
Within your rundeck project configuration, add a Resource Model Source of type "URL Source", pointing at the machine that this web application is running on, port 8888 (or whatever you've configured it to use per the Apache configuration). The URL params hostname_prefix and rundeck_user are mandatory params!
Example: URL Field: http://localhost:8888/:hostname_prefix/:rundeck_user
Timeout: 90
Cache Results: Not checked
Any Jobs created under this Project should now have access to all nodes known by PuppetDB.
- Craig Dunn (crayfishx)
- Mark Cartwright (sirloper)
### Contributors
- Original code developed by martin2110 https://github.com/martin2110/puppetdb-rundeck
Licensed under the Apache 2.0 licence.