martin2110 / puppetdb2-rundeck

Middleware to tie together PupppetDB 2 and Rundeck 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

puppetdb_rundeck module

This module sets up puppetdb-rundeck to run under passenger and expose all host data in PuppetDB, incuding fact, to rundeck.

Class puppetdb_rundeck

Options

  • with_sinatra : Manage sinatra gem (default true)
  • approot : Application root
  • servername : Apache server name
  • port : 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)

puppetdb-rundeck

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

Installation

class { 'puppetdb_rundeck': }

Usage

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.

Credits

Maintainers

  • Craig Dunn (crayfishx)
  • Mark Cartwright (sirloper)

### Contributors

License

Licensed under the Apache 2.0 licence.

About

Middleware to tie together PupppetDB 2 and Rundeck 2


Languages

Language:Puppet 58.9%Language:Ruby 39.9%Language:HTML 1.2%