Support TripleO-CI for overcloud builds.
authorRobert Collins <rbtcollins@hp.com>
Wed, 12 Feb 2014 22:03:56 +0000 (11:03 +1300)
committerClint Byrum <clint@fewbar.com>
Thu, 13 Feb 2014 20:08:55 +0000 (12:08 -0800)
For Tripleo-CI we can't generate the key in the VM and hand it out,
because we have restricted access to the machine. Plus, this has been
ugly forever. Pass an SSH key in, rather than pulling one out.

Change-Id: I1def0757758e30e63891ff099106dac158bd8d83

undercloud-vm-source.yaml

index e70ef52..4fc10d8 100644 (file)
@@ -7,6 +7,13 @@ Parameters:
     Default: nova.virt.baremetal.virtual_power_driver.VirtualPowerManager
     Description: Bare metal power manager driver.
     Type: String
+  PowerSSHHost:
+    Default: 192.168.122.1
+    Description: SSH host to ssh to for power management operations.
+    Type: String
+  PowerSSHPrivateKey:
+    Description: Private key for using to ssh to a virtual power host.
+    Type: NoEcho
   PowerUserName:
     Default: stack
     Description: What username to ssh to the virtual power host with.
@@ -35,8 +42,10 @@ Resources:
           virtual_power:
             user:
               Ref: PowerUserName
-            key: /opt/stack/boot-stack/virtual-power-key
-            ssh_host: 192.168.122.1
+            ssh_host:
+              Ref: PowerSSHHost
+            ssh_key:
+              Ref: PowerSSHPrivateKey
             type: virsh
         service-password:
           Ref: NovaPassword