From f6289d012740c730ac1b9b0ea8a3842f8c72149e Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Tue, 17 Dec 2013 15:26:32 +1300 Subject: Permit setting overcloud image update policies. This is the first step towards preserving state on stack updates when the image id has changed. I chose REPLACE as the default value because that is the current behaviour and we can override it from the command line. Change-Id: I64eab51892922ab51a89a9f389457fd1ed979fb2 --- nova-compute-instance.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nova-compute-instance.yaml') diff --git a/nova-compute-instance.yaml b/nova-compute-instance.yaml index 2aadea8d..e10b1dc5 100644 --- a/nova-compute-instance.yaml +++ b/nova-compute-instance.yaml @@ -14,6 +14,10 @@ Parameters: Description: Use this flavor Type: String Default: baremetal + ImageUpdatePolicy: + Default: 'REPLACE' + Description: What policy to use when reconstructing instances. REBUILD for rebuilds, REBUILD_PRESERVE_EPHEMERAL to preserve /mnt. + Type: String NovaImage: Type: String Default: overcloud-compute @@ -81,6 +85,8 @@ Resources: Properties: image: {Ref: NovaImage} + image_update_policy: + Ref: ImageUpdatePolicy flavor: {Ref: Flavor} key_name: {Ref: KeyName} Metadata: -- cgit 1.2.3-korg