diff --git a/lib/puppet/provider/grafana.rb b/lib/puppet/provider/grafana.rb index b28a84913..d1cfc47ab 100644 --- a/lib/puppet/provider/grafana.rb +++ b/lib/puppet/provider/grafana.rb @@ -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