Showing with 11 additions and 1 deletion.
  1. +8 −0 CHANGELOG.md
  2. +1 −0 lib/facter/agent_status_check.rb
  3. +1 −0 lib/facter/pe_status_check.rb
  4. +1 −1 metadata.json
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).

## [v2.1.1](https://github.com/puppetlabs/puppetlabs-pe_status_check/tree/v2.1.1) (2022-07-11)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-pe_status_check/compare/v2.1.0...v2.1.1)

### Fixed

- \(SUP-3452\) Handle hostcert path missing [\#145](https://github.com/puppetlabs/puppetlabs-pe_status_check/pull/145) ([MartyEwings](https://github.com/MartyEwings))

## [v2.1.0](https://github.com/puppetlabs/puppetlabs-pe_status_check/tree/v2.1.0) (2022-07-08)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-pe_status_check/compare/v2.0.2...v2.1.0)
Expand Down
1 change: 1 addition & 0 deletions lib/facter/agent_status_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
chunk(:AS001) do
# Is the hostcert expiring within 90 days
#
next unless File.exist?(Puppet.settings['hostcert'])
raw_hostcert = File.read(Puppet.settings['hostcert'])
certificate = OpenSSL::X509::Certificate.new raw_hostcert
result = certificate.not_after - Time.now
Expand Down
1 change: 1 addition & 0 deletions lib/facter/pe_status_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@

chunk(:S0015) do
# Is the hostcert expiring within 90 days
next unless File.exist?(Puppet.settings['hostcert'])
raw_hostcert = File.read(Puppet.settings['hostcert'])
certificate = OpenSSL::X509::Certificate.new raw_hostcert
result = certificate.not_after - Time.now
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": "puppetlabs-pe_status_check",
"version": "2.1.0",
"version": "2.1.1",
"author": "Marty Ewings",
"summary": "A Puppet Enterprise Module to Promote Preventative Maintenance and Self Service",
"license": "Apache-2.0",
Expand Down