Fix Ironic templates
authorRobert Collins <rbtcollins@hp.com>
Mon, 24 Mar 2014 04:23:40 +0000 (17:23 +1300)
committerRobert Collins <rbtcollins@hp.com>
Tue, 25 Mar 2014 01:04:52 +0000 (14:04 +1300)
The merge of ironic-source wasn't actually merging, leading to bad
templates. As part of this add the needed SSH virtual power key
(because like nova-bm, Ironic requires that for now).

We also need to set the compute_manager for nova with Ironic, so that
gets set too.

Change-Id: I0d7d535dbac3584b3eb12865259ee6403e20c98f

Makefile
ironic-source.yaml [deleted file]
undercloud-vm-ironic-source.yaml

index d27bcf5..511ecb8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ undercloud-vm-tuskar.yaml: undercloud-source.yaml undercloud-vm-source.yaml tusk
        python ./tripleo_heat_merge/merge.py $^ > $@.tmp
        mv $@.tmp $@
 
-undercloud-vm-ironic.yaml: undercloud-source.yaml undercloud-vm-ironic-source.yaml ironic-source.yaml
+undercloud-vm-ironic.yaml: undercloud-source.yaml undercloud-vm-ironic-source.yaml
        python ./tripleo_heat_merge/merge.py $^ > $@.tmp
        mv $@.tmp $@
 
diff --git a/ironic-source.yaml b/ironic-source.yaml
deleted file mode 100644 (file)
index 6782225..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Description: 'Ironic: Bare Metal provisioning, API and Conductor services.'
-Parameters:
-  IronicPassword:
-    Type: String
-    Description: Ironic password for keystone access
-    NoEcho: true
-Resources:
-  ironic:
-    Type: AWS::AutoScaling::LaunchConfiguration
-    Metadata:
-      OpenStack::Role: undercloudConfig
-      ironic:
-        db: mysql://ironic:unset@localhost/ironic
-        service-password: {Ref: IronicPassword}
index 9673bb5..2e9555a 100644 (file)
@@ -1,15 +1,30 @@
 Parameters:
+  IronicPassword:
+    Type: String
+    Description: Ironic password for keystone access
+    NoEcho: true
   NeutronPublicInterface:
     Default: eth0
     Description: What interface to bridge onto br-ex for network nodes.
     Type: String
+  PowerSSHPrivateKey:
+    Description: Private key for using to ssh to a virtual power host.
+    Type: String
+    NoEcho: true
 Resources:
   undercloudConfig:
     Type: AWS::AutoScaling::LaunchConfiguration
     Metadata:
+      ironic:
+        db: mysql://ironic:unset@localhost/ironic
+        service-password:
+          Ref: IronicPassword
+        virtual_power_ssh_key:
+          Ref: PowerSSHPrivateKey
       nova:
         compute_hostname: undercloud
         compute_driver: ironic.nova.virt.ironic.driver.IronicDriver
+        compute_manager: ironic.nova.compute.manager.ClusteredComputeManager
         db: mysql://nova:unset@localhost/nova
         default_ephemeral_format: ext4
         host: 127.0.0.1