Showing with 7 additions and 7 deletions.
  1. +6 −0 CHANGELOG.md
  2. +0 −6 files/tk_metrics
  3. +1 −1 metadata.json
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Minor Release 4.3.0

## Improvements
- No longer pass certificates to connect to metrics endpoint
- [PR #34](https://github.com/npwalker/pe_metric_curl_cron_jobs/pull/34)

# Z Release 4.2.2

## Bug Fixes:
Expand Down
6 changes: 0 additions & 6 deletions files/tk_metrics
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ def get_endpoint(url)
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.cert = OpenSSL::X509::Certificate.new(File.read("/etc/puppetlabs/puppet/ssl/certs/#{CLIENTCERT}.pem"))
http.key = OpenSSL::PKey::RSA.new(File.read("/etc/puppetlabs/puppet/ssl/private_keys/#{CLIENTCERT}.pem"))
http.ca_file = '/etc/puppetlabs/puppet/ssl/certs/ca.pem'
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
data = JSON.parse(http.get(uri.request_uri).body)
rescue Exception => e
Expand All @@ -51,9 +48,6 @@ def post_endpoint(url,post_data)
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.cert = OpenSSL::X509::Certificate.new(File.read("/etc/puppetlabs/puppet/ssl/certs/#{CLIENTCERT}.pem"))
http.key = OpenSSL::PKey::RSA.new(File.read("/etc/puppetlabs/puppet/ssl/private_keys/#{CLIENTCERT}.pem"))
http.ca_file = '/etc/puppetlabs/puppet/ssl/certs/ca.pem'
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(uri.request_uri)
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npwalker/pe_metric_curl_cron_jobs",
"version": "4.2.2",
"version": "4.3.0",
"author": "npwalker",
"summary": "A Puppet module for gathering metrics from PE components",
"license": "Apache-2.0",
Expand Down