| Module | Puppet::SSLCertificates::Inventory |
| In: |
lib/puppet/sslcertificates/inventory.rb
|
Add CERT to the inventory of issued certs in ’$cadir/inventory.txt’ If no inventory exists yet, build an inventory and list all the certificates that have been signed so far
# File lib/puppet/sslcertificates/inventory.rb, line 9
9: def self.add(cert)
10: inited = false
11: if FileTest.exists?(Puppet[:cert_inventory])
12: inited = true
13: end
14:
15: Puppet.settings.write(:cert_inventory, "a") do |f|
16: f.puts((inited ? nil : self.init).to_s + format(cert))
17: end
18: end