Now that we are successfully generating keys, we need to
pass those keys through to condor so it embeds the keys
in instances when starting them.  This patch does exactly
that.

Signed-off-by: Chris Lalancette <[email protected]>
---
 src/app/util/condormatic.rb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/app/util/condormatic.rb b/src/app/util/condormatic.rb
index 6437c2c..bcb8764 100644
--- a/src/app/util/condormatic.rb
+++ b/src/app/util/condormatic.rb
@@ -45,7 +45,7 @@ def condormatic_instance_create(task)
     else
       resource += " NULL"
     end
-    resource += " $$(hardwareprofile_key) NULL\n"
+    resource += " $$(hardwareprofile_key) $$(keypair)\n"
 
     pipe.puts resource
     Rails.logger.info resource
@@ -266,6 +266,7 @@ def condormatic_classads_sync
               pipe.puts "username=\"#{account.username}\""
               pipe.puts "password=\"#{account.password}\""
               pipe.puts "cloud_account_id=\"#{account.id}\""
+              pipe.puts "keypair=\"#{account.instance_key.name}\""
               pipe.close_write
 
               out = pipe.read
-- 
1.7.3.1

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to