Unhardcode AZ
Related-Prod: PRODX-3456
Change-Id: I219229c61dcc887e3cd59ffdc256cb29067a68f5
diff --git a/de/heat-templates/fragments/NetworkPrvFlVSRX.yaml b/de/heat-templates/fragments/NetworkPrvFlVSRX.yaml
index 365afd4..988121d 100644
--- a/de/heat-templates/fragments/NetworkPrvFlVSRX.yaml
+++ b/de/heat-templates/fragments/NetworkPrvFlVSRX.yaml
@@ -23,6 +23,9 @@
vsrx_flavor:
type: string
default: oc_vsrx
+ availability_zone:
+ type: string
+ default: nova
public_net_id:
type: string
@@ -77,7 +80,7 @@
type: OS::Nova::Server
properties:
name: { list_join: ['-', [get_param: "OS::stack_name", 'vsrx01']] }
- availability_zone: nova
+ availability_zone: { get_param: availability_zone }
image: { get_param: vsrx_image }
flavor: { get_param: vsrx_flavor }
networks:
diff --git a/de/heat-templates/fragments/SrvInstancesBM.yaml b/de/heat-templates/fragments/SrvInstancesBM.yaml
index 8efb0fd..5599d11 100644
--- a/de/heat-templates/fragments/SrvInstancesBM.yaml
+++ b/de/heat-templates/fragments/SrvInstancesBM.yaml
@@ -56,6 +56,9 @@
description: The content of lab metadata.
default: ''
type: string
+ availability_zone:
+ type: string
+ default: nova
resources:
@@ -110,7 +113,7 @@
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
- availability_zone: nova
+ availability_zone: { get_param: availability_zone }
networks:
- network: { get_param: accessible_network }
user_data_format: SOFTWARE_CONFIG
diff --git a/de/heat-templates/fragments/SrvInstancesBMCeph.yaml b/de/heat-templates/fragments/SrvInstancesBMCeph.yaml
index f3d4b7a..7c6a76d 100644
--- a/de/heat-templates/fragments/SrvInstancesBMCeph.yaml
+++ b/de/heat-templates/fragments/SrvInstancesBMCeph.yaml
@@ -73,6 +73,9 @@
hardware_metadata:
description: The content of lab metadata.
type: string
+ availability_zone:
+ type: string
+ default: nova
resources:
@@ -134,7 +137,7 @@
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
- availability_zone: nova
+ availability_zone: { get_param: availability_zone }
networks:
- network: { get_param: accessible_network }
# NOTE(ohryhorov): connect to accessible network only as ironic doesn't
diff --git a/de/heat-templates/fragments/SrvInstancesBMCephOSD.yaml b/de/heat-templates/fragments/SrvInstancesBMCephOSD.yaml
index 42e7f47..4fa2615 100644
--- a/de/heat-templates/fragments/SrvInstancesBMCephOSD.yaml
+++ b/de/heat-templates/fragments/SrvInstancesBMCephOSD.yaml
@@ -94,6 +94,9 @@
num_volumes:
type: number
default: 0
+ availability_zone:
+ type: string
+ default: nova
resources:
@@ -160,7 +163,7 @@
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
- availability_zone: nova
+ availability_zone: { get_param: availability_zone }
networks:
- network: { get_param: accessible_network }
# NOTE(ohryhorov): connect to accessible network only as ironic doesn't
diff --git a/de/heat-templates/fragments/SrvInstancesVM.yaml b/de/heat-templates/fragments/SrvInstancesVM.yaml
index d82bd96..d005f8d 100644
--- a/de/heat-templates/fragments/SrvInstancesVM.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVM.yaml
@@ -70,6 +70,9 @@
# Don't mount ephemeral0 to /mnt as it's by default
mounts:
- [ ephemeral0, null ]
+ availability_zone:
+ type: string
+ default: nova
resources:
@@ -127,7 +130,7 @@
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
- availability_zone: nova
+ availability_zone: { get_param: availability_zone }
networks:
- port: { get_resource: accessible_server_port }
- port: { get_resource: private_floating_server_port }
diff --git a/de/heat-templates/fragments/SrvInstancesVMCeph.yaml b/de/heat-templates/fragments/SrvInstancesVMCeph.yaml
index cf88f83..b3db55e 100644
--- a/de/heat-templates/fragments/SrvInstancesVMCeph.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVMCeph.yaml
@@ -81,6 +81,9 @@
# Don't mount ephemeral0 to /mnt as it's by default
mounts:
- [ ephemeral0, null ]
+ availability_zone:
+ type: string
+ default: nova
resources:
@@ -143,7 +146,7 @@
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
- availability_zone: nova
+ availability_zone: { get_param: availability_zone }
networks:
- port: { get_resource: accessible_server_port }
- port: { get_resource: private_floating_server_port }
diff --git a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
index e5b4d9a..f9c2ce9 100644
--- a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
@@ -114,6 +114,9 @@
num_volumes:
type: number
default: 0
+ availability_zone:
+ type: string
+ default: nova
resources:
@@ -185,7 +188,7 @@
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
- availability_zone: nova
+ availability_zone: { get_param: availability_zone }
networks:
- port: { get_resource: accessible_server_port }
- port: { get_resource: private_floating_server_port }