[CICDANSIBLE] Add availability_zone Heat stack parameter
[oom/offline-installer.git] / tools / cicdansible / heat / installer.yaml
index 1f65f73..885bc8a 100644 (file)
@@ -29,11 +29,15 @@ parameters:
         description: "need to specify a valid flavor"
   image_name:
     label: "image name"
-    description: "name of the image from which to create all instances, should be rhel 7.6 or centos image"
+    description: "name of the image from which to create all instances, should be rhel/centos 7.9 image"
     type: string
     constraints:
       - custom_constraint: glance.image
         description: "must specify a valid image name"
+  availability_zone:
+    label: "availability zone"
+    description: "availability zone to use for scheduling instances"
+    type: string
   subnet_cidr:
     label: "private subnet cidr"
     description: "Cidr of a private subnet instances will be connected to"
@@ -58,6 +62,10 @@ parameters:
     type: string
     constraints:
       - custom_constraint: ip_addr
+  dns_nameservers:
+    label: "dns resolvers"
+    description: "List of dns resolvers"
+    type: comma_delimited_list
   public_network_name:
     label: "name of the public network"
     description: "Name of the public, internet facing network, also allowing access to company internal hosts"
@@ -99,6 +107,10 @@ parameters:
     type: string
     description: "specifies id of network used for demo usecases"
     default: ""
+  docker_storage_size:
+    label: "nodes' docker storage size"
+    type: number
+    description: "Size of the volume for the docker storage on nodes"
 conditions:
   #Condition for nfs volume usage.
   use_volume_for_nfs: { get_param: use_volume_for_nfs }
@@ -140,6 +152,7 @@ resources:
       allocation_pools:
         - { start: { get_param: subnet_range_start }, end: { get_param: subnet_range_end } }
       gateway_ip: { get_param: router_addr }
+      dns_nameservers: { get_param: dns_nameservers }
       ip_version: 4
   #A port connected to the private network, taken by router.
   routerport:
@@ -204,9 +217,11 @@ resources:
           network: { get_resource: privnet }
           subnet: { get_resource: privsubnet }
           flavor_name: { get_param: node_flavor_name }
+          availability_zone: { get_param: availability_zone }
           notify_command: { get_attr: ["instance_wait_handle", "curl_cli"] }
           security_group: { get_resource: secgroup }
           demo_network: { get_param: demo_network }
+          docker_storage_size: { get_param: docker_storage_size }
           scheduler_hints:
             group: { get_resource: anti_affinity_group }
     depends_on: [routercon, instance_wait_handle]
@@ -245,6 +260,7 @@ resources:
       subnet: { get_resource: privsubnet }
       key_name: { get_resource: key }
       flavor_name: { get_param: infra_flavor_name }
+      availability_zone: { get_param: availability_zone }
       image_name: { get_param: image_name }
       notify_command: { get_attr: ["instance_wait_handle", "curl_cli"] }
       security_group: { get_resource: secgroup }
@@ -270,6 +286,7 @@ resources:
       instance_name: installer
       image_name: { get_param: image_name }
       flavor_name: { get_param: installer_flavor_name }
+      availability_zone: { get_param: availability_zone }
       key_name: { get_resource: key }
       network: { get_resource: privnet }
       subnet: { get_resource: privsubnet }