voxpupuli / puppet-openssl

Puppet OpenSSL module
Apache License 2.0
38 stars 84 forks source link

openssl_version fact resolves to nil #134

Closed fraenki closed 2 years ago

fraenki commented 2 years ago

Problem description

The custom fact openssl_version resolves to nil:

/opt/puppetlabs/bin/facter -p -d --no-color 2>&1 | grep openssl
[2021-12-29 00:12:43.868917 ] DEBUG Facter::Core::Execution::Posix - Executing command: /bin/openssl version 2>&1 
[2021-12-29 00:12:43.891068 ] DEBUG Facter::Util::Fact - value for openssl_version is still nil 

Environment

voxpupuli/puppet-openssl 2.0.0

CentOS 8.5.2111 Puppet Agent 7.13.1 Facter 4.2.6

$ /bin/openssl version
OpenSSL 1.1.1k  FIPS 25 Mar 2021

Additional context

AFAICT this issue should not exist, it was resolved in https://github.com/voxpupuli/puppet-openssl/commit/5fe38f9893b881a39bbae5f76f5bdd12eacba261 but still doesn't work for me.

fraenki commented 2 years ago

Oh well... spot the difference:

OpenSSL 1.1.1k  FIPS 25 Mar 2021
   vs.
OpenSSL 1.1.1c FIPS 28 May 2019

I've submitted a PR.