Um, yeah, so that's completely different to what I've got... :( I'll get a copy of that script and install it now.
On 5 March 2010 10:38, Matt <mattmora...@gmail.com> wrote: > On 5 March 2010 10:11, Matthew Macdonald-Wallace <mattmacw...@gmail.com> > wrote: >> >> I've had a thought about this overnight (my brain seems to work better >> when I'm asleep!) >> >> Is there a newer version of the foreman.rb report intended for use >> with puppetmaster 0.25.x? >> >> I know the config.ru changed for the RACK application, I'm wondering >> if I need to make further changes. > > Are you running Foreman 0.1.3? My foreman.rb on a x86_64 box is in :- > /usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb > And consists of:- > $foreman_url="http://your.foreman.url" > require 'puppet' > require 'net/http' > require 'uri' > Puppet::Reports.register_report(:foreman) do > Puppet.settings.use(:reporting) > desc "Sends reports directly to Foreman" > def process > begin > > Net::HTTP.post_form(URI.parse("#{$foreman_url}/reports/create?format=yml"), > {'report'=> to_yaml}) > rescue Exception => e > raise Puppet::Error, "Could not send report to Foreman: #{e}" > end > end > end > > /etc/puppet/puppet.conf > [puppetmasterd] > reports=log, foreman > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.