[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Richard Crowley r at rcrowley.org
Tue May 10 08:07:28 UTC 2011


The following commit has been merged in the experimental branch:
commit a7a9e125018c7a3fd0f0afc543f7aeaea1c19525
Author: Richard Crowley <r at rcrowley.org>
Date:   Wed Mar 23 17:44:58 2011 +0000

    Alter generate action to work on CSRs only.

diff --git a/lib/puppet/interface/certificate.rb b/lib/puppet/interface/certificate.rb
index 6ba043e..4088a45 100644
--- a/lib/puppet/interface/certificate.rb
+++ b/lib/puppet/interface/certificate.rb
@@ -1,12 +1,13 @@
 require 'puppet/interface/indirector'
+require 'puppet/ssl/host'
 
 Puppet::Interface::Indirector.interface(:certificate) do
+
   action :generate do
     invoke do |name|
-      require 'puppet/ssl/host'
-
       host = Puppet::SSL::Host.new(name)
-      host.generate
+      host.generate_certificate_request
+      host.certificate_request.class.indirection.save(host.certificate_request)
     end
   end
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list