Issue #7173 has been updated by Ben Hughes.

Do you have anywhere I can test this please, a hack like the following might 
work:

<pre>
diff --git i/lib/puppet/reports/http.rb w/lib/puppet/reports/http.rb
index 7ac54df..4bf1421 100644
--- i/lib/puppet/reports/http.rb
+++ w/lib/puppet/reports/http.rb
@@ -13,6 +13,7 @@ Puppet::Reports.register_report(:http) do
   def process
     url = URI.parse(Puppet[:reporturl])
     req = Net::HTTP::Post.new(url.path)
+    req.basic_auth url.user, url.password if url.user
     req.body = self.to_yaml
     req.content_type = "application/x-yaml"
     Net::HTTP.new(url.host, url.port).start {|http|
</pre>
----------------------------------------
Bug #7173: Puppet master can't submit reports to an HTTP server using basic auth
https://projects.puppetlabs.com/issues/7173

Author: Nick Fagerlund
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


If you turn on HTTP basic auth in Puppet Dashboard's vhost config, Puppet is 
unable to communicate with it. Setting a `reporturl` of (for example) 
<http://puppet:puppet@localhost:3000/reports> will not cause puppet to 
authenticate itself to Dashboard. 

The ENC script doesn't work either; see issue #5126. The approach in Matt and 
my patch in comment 7 could probably be dropped into lib/reports/http.rb.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to