2

With software versions puppet-server 0.25.5 and puppet-dashboard 1.0.4, I have a fully functional puppet-dashboard instance complete with autoregistration of new check in reports. However, after enabling SSL on the vhost report auto-registration no longer occurs. I have verified that, from a user perspective the site otherwise functions correctly.

I have changed the PORT definition in my puppet_dashboard.rb file, and am not receiving any logs showing failed connections,etc.

Can anyone provide guidance on how best to debug, or fix this?

2 Answers 2

2

This is apparently less of an issue with setup and configuration, and more of an issue with design. The underlying report registration does not support SSL. Some more creative googling brought me to this Pastie post with the relevant code replicated below. Replace the process definition with the following in your puppet_dashboard.rb.

def process
  link = Net::HTTP.new(HOST, PORT)
  link.use_ssl = true
  link.verify_mode = OpenSSL::SSL::VERIFY_NONE
  link.start do |conn|
    conn.post "/reports", "report=" + CGI.escape(self.to_yaml)
  end
end
1

If you run dashboard under passenger you can add one more section in virtualhosts without SSL enabled in it and using that exclusively for reporting.

That also solves the similar problem with HTTPAuth enabled in web server for dashboard which also is not natively supported by dashboard.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .