Module: Puppet::SSLCertificates::Inventory
- Defined in:
- lib/puppet/sslcertificates/inventory.rb
Class Method Summary collapse
-
.add(cert) ⇒ Object
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.
Class Method Details
.add(cert) ⇒ Object
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
9 10 11 12 13 14 15 16 |
# File 'lib/puppet/sslcertificates/inventory.rb', line 9 def self.add(cert) inited = false inited = true if FileTest.exists?(Puppet[:cert_inventory]) Puppet.settings.write(:cert_inventory, "a") do |f| f.puts((inited ? nil : self.init).to_s + format(cert)) end end |