puppetdb.rb

Path: lib/puppet/reports/puppetdb.rb
Last Update: Tue Mar 01 06:03:44 +0000 2016

Required files

puppet   puppet/util/puppetdb   puppet/util/puppetdb/command_names  

Methods

Included Modules

Puppet::Util::Puppetdb

Constants

CommandStoreReport = Puppet::Util::Puppetdb::CommandNames::CommandStoreReport

Public Instance methods

@return Array[Hash] @api private

Helper method for accessing the puppetdb configuration

@api private

Convert an instance of `Puppet::Transaction::Event` to a hash suitable for sending over the wire to PuppetDB

@return Hash[<String, Object>] @api private

Given an instance of `Puppet::Resource::Status` and a status string, this method fabricates a PuppetDB event object with the provided `"status"`.

@api private

Filter out blacklisted events, if we‘re configured to do so

@api private

Process the report by formatting it into a PuppetDB ‘store report’ command and submitting it.

@return [void]

Convert `self` (an instance of `Puppet::Transaction::Report`) to a hash suitable for sending over the wire to PuppetDB

@return Hash[<String, Object>] @api private

@return Number @api private

[Validate]