blob: 23a5189816faae527bada7c0916c0a0d551b90a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'puppet/faces/indirector'
Puppet::Faces::Indirector.define(:report, '0.0.1') do
action(:submit) do
when_invoked do |report, options|
begin
Puppet::Transaction::Report.terminus_class = :rest
report.save
rescue => detail
puts detail.backtrace if Puppet[:trace]
Puppet.err "Could not send report: #{detail}"
end
end
end
end
|