report_consul_kv

Puppet reporter which save details to Consul KV

Uchio Kondo

udzura

6,876 downloads

6,876 latest version

4.1 quality score

Version information

  • 0.2.0 (latest)
released Nov 25th 2015

Start using this module

Documentation

udzura/report_consul_kv — version 0.2.0 Nov 25th 2015

udzura-report_consul_kv

Table of Contents

  1. Overview
  2. Setup - The basics of getting started with report_consul_kv
  3. Usage - Configuration options and additional functionality
  4. Development - Guide for contributing to the module

Overview

Puppet reporter which save details to Consul KV

Setup

Run:

puppet module install udzura-report_consul_kv
# or use librarian-puppet

Usage

Create config file /etc/puppet/consul_kv.yaml on your master:

---
consul_url: "http://consul.host:8500" # default to localhost:8500
event_name: "puppet-apply"

event_name is optional, and if it is set, puppet master kicks consul event every time agent runs.

If you have any REVISION file(e.g. when you deployed manifests with Capistrano), please set revision_file.

Then set and restart puppetserver:

[master]
#...

report  = true
reports = consul_kv

After this, puppet will save the reports to consul keys:

  • "/puppet_reports/${hostname}/last_report" for the time last provisioned
  • "/puppet_reports/${hostname}/last_report" for detail

Development

Fork, modify, pull request.

License

See LICENSE