To make testing easier.

clarified the variables required for running the
installation script.

Reviewed-by: Jeff McCune

Signed-off-by: Dan Bode <[email protected]>
---
 lib/puppet/cloudpack.rb |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/puppet/cloudpack.rb b/lib/puppet/cloudpack.rb
index bda380a..63f3815 100644
--- a/lib/puppet/cloudpack.rb
+++ b/lib/puppet/cloudpack.rb
@@ -494,6 +494,10 @@ module Puppet::CloudPack
 
       upload_payloads(connections[:scp], options)
       tmp_script_path = compile_template(options)
+      run_install_script(connections[:ssh], connections[:scp], 
tmp_script_path, options[:tmp_dir], options[:install_script], options[:login])
+      options[:certname]
+    end
+
     def ssh_connect(server, login, keyfile = nil)
       opts = {}
       opts[:key_data] = [File.read(File.expand_path(keyfile))] if keyfile
@@ -567,6 +571,7 @@ module Puppet::CloudPack
       end
     end
 
+    def run_install_script(ssh, scp, tmp_install_script, tmp_dir, script, 
login)
       Puppet.notice "Executing Puppet Install Script ..."
 
       scp.upload(tmp_install_script, "#{tmp_dir}/#{script}.sh")
@@ -581,8 +586,6 @@ module Puppet::CloudPack
         Puppet.debug(r)
       end
       Puppet.notice "Executing Puppet Install Script ... Done"
-
-      return certname
     end
 
     def terminate(server, options)
-- 
1.7.5.4

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to