On Mar 21, 2011, at 1:55 PM, R.I.Pienaar wrote: > hello, > > In the absence of http://projects.puppetlabs.com/issues/show/4339 is there > any way we can hook into the reporting process on the agent side? I don't > have a central node as such so sending reports is pointless but I want to get > hold of the data on the nodes.
Hmm. I, um, don't actually think there is. :/ You'd have to monkey-patch the Report class to allow specification of a report terminus; something like: diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb index 8da1040..ca3c7ae 100644 --- a/lib/puppet/defaults.rb +++ b/lib/puppet/defaults.rb @@ -117,6 +117,7 @@ module Puppet huge numbers that can then not be fed back into the system. This is a hackish way to fail in a slightly more useful way when that happens."], :node_terminus => ["plain", "Where to find information about nodes."], + :report_terminus => ["processor", "How to process and manage reports."], :catalog_terminus => ["compiler", "Where to get node catalogs. This is useful to change if, for instance, you'd like to pre-compile catalogs and store them in memcached or some other easily-accessed store."], :facts_terminus => { diff --git a/lib/puppet/transaction/report.rb b/lib/puppet/transaction/report.rb index 8e04759..5ab8b3d 100644 --- a/lib/puppet/transaction/report.rb +++ b/lib/puppet/transaction/report.rb @@ -8,7 +8,7 @@ require 'puppet/indirector' class Puppet::Transaction::Report extend Puppet::Indirector - indirects :report, :terminus_class => :processor + indirects :report, :terminus_setting => :report_terminus attr_accessor :configuration_version attr_reader :resource_statuses, :logs, :metrics, :host, :time, :kind, :status Obviously not ideal, but... -- Never esteem anything as of advantage to you that will make you break your word or lose your self-respect. -- Marcus Aurelius Antoninus --------------------------------------------------------------------- Luke Kanies -|- http://puppetlabs.com -|- +1(615)594-8199 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.