Adding image update policy to undercloud template
authorCian O'Driscoll <cian@hp.com>
Fri, 21 Mar 2014 10:46:18 +0000 (10:46 +0000)
committerCian O'Driscoll <cian@hp.com>
Fri, 21 Mar 2014 10:48:29 +0000 (10:48 +0000)
Allows image policy to be specified when updating the undercloud
stack. This enables the preservation of persistent ephemeral disks.

Change-Id: Id7bc0a72ae1737d2fdadb3f47006bd0cfb0bc42f
Closes-Bug: #1295616

undercloud-source.yaml

index f18612c..3e053af 100644 (file)
@@ -41,6 +41,11 @@ Parameters:
     Description: The password for the Heat service account, used by the Heat services.
     Type: String
     NoEcho: true
+  ImageUpdatePolicy:
+    Default: REPLACE
+    Description: What policy to use when reconstructing instances. REBUILD for rebuilds,
+      REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
+    Type: String
   undercloudImage:
     Default: undercloud
     Type: String
@@ -232,6 +237,8 @@ Resources:
         Ref: Flavor
       key_name:
         Ref: KeyName
+      image_update_policy:
+        Ref: ImageUpdatePolicy
     Metadata:
       os-collect-config:
         cfn: