Skip to content

Commit

Permalink
Support HTTPS for Grafana resources
Browse files Browse the repository at this point in the history
This change fixes the issue bfraser#86.
  • Loading branch information
Simon Pasquier committed Jun 9, 2016
1 parent c4d6b5c commit 20cbe02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet/provider/grafana.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def send_request(operation="GET", path="", data=nil, search_path={})
request.basic_auth resource[:grafana_user], resource[:grafana_password]
end

return Net::HTTP.start(self.grafana_host, self.grafana_port) do |http|
return Net::HTTP.start(self.grafana_host, self.grafana_port,
:use_ssl => self.grafana_scheme == 'https',
:verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|
http.request(request)
end
end
Expand Down

0 comments on commit 20cbe02

Please sign in to comment.