Browse Source

Facter available certs

master
Jason Kendall 1 year ago
parent
commit
0dd2506092
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      lib/facter/letsencrypyt_certs.rb

+ 10
- 0
lib/facter/letsencrypyt_certs.rb View File

@@ -0,0 +1,10 @@

require 'facter'

crt_domains = Dir['/etc/letsencrypt/certs/*.crt'].map { |a| a.gsub(%r{\.crt$}, '').gsub(%r{^.*/}, '') }

Facter.add(:letsencrypt_certs) do
setcode do
crt_domains
end
end

Loading…
Cancel
Save