blob: 6e6f0b33576d0585cf21418db0f5d6544f382bfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'puppet/face/indirector'
Puppet::Face::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
|