|
1 | 1 | # Image variables |
2 | 2 | variable "custom_image_name" { |
3 | | - description = "z/OS Custom image name" |
4 | 3 | type = string |
5 | | - default = "wazi-custom-image" |
| 4 | + default = "wazi-custom-image" |
| 5 | + description = "Name of the z/OS custom image that will be generated" |
6 | 6 | } |
7 | 7 |
|
8 | 8 | variable "custom_vsi"{ |
| 9 | + type = bool |
| 10 | + default = false |
9 | 11 | description = "Builds VSI using the custom image" |
10 | | - type = bool |
11 | | - default = true |
12 | 12 | } |
13 | 13 | variable "custom_image_os" { |
| 14 | + default = "zos-2-4-s390x-dev-test-byol" |
14 | 15 | description = "OS for generated image - it must match the OS uploaded to COS" |
15 | | - default = "zos-2-4-s390x-dev-test-byol" |
16 | 16 | } |
17 | 17 |
|
18 | 18 | # Target location for image |
19 | 19 | variable "region" { |
20 | | - description = "Region to run the VSI doing the conversion" |
21 | 20 | type = string |
22 | | - default = "ca-tor" |
| 21 | + default = "ca-tor" |
| 22 | + description = "Region to run the VSI doing the conversion. Custom image will be stored here" |
23 | 23 | } |
24 | 24 |
|
25 | 25 | variable "zone" { |
26 | | - description = "Zone for the VSI - data volumes will be stored here" |
27 | 26 | type = string |
28 | | - default = "1" |
| 27 | + default = "1" |
| 28 | + description = "Zone for the VSI - data volumes will be stored here" |
29 | 29 | } |
30 | 30 |
|
31 | | -# Souce COS bucket with the CKD files |
| 31 | +# Source COS bucket with the CKD files |
32 | 32 | variable "cos_bucket_region" { |
33 | | - description = "Region of the COS instance" |
34 | 33 | type = string |
| 34 | + description = "Region of the COS bucket" |
35 | 35 | } |
36 | 36 |
|
37 | 37 | variable "cos_instance_name" { |
38 | | - description = "Name of the COS instance" |
39 | 38 | type = string |
| 39 | + description = "Name of the COS instance that holds the COS bucket" |
40 | 40 | } |
41 | 41 |
|
42 | 42 | variable "cos_bucket_name" { |
43 | | - description = "Name of the COS bucket" |
44 | 43 | type = string |
| 44 | + description = <<-DESC |
| 45 | + Name of the COS bucket that contains the z/OS volumes archive |
| 46 | + files uploaded by on-prem Wazi Image Builder |
| 47 | + DESC |
45 | 48 | } |
46 | 49 |
|
47 | 50 | variable "cos_resource_group" { |
48 | | - description = "Resource group of the COS instance" |
49 | 51 | type = string |
50 | 52 | default = "Default" |
| 53 | + description = "Resource group of the COS instance" |
51 | 54 | } |
52 | 55 |
|
53 | 56 | variable "cos_endpoint" { |
@@ -106,8 +109,8 @@ variable "volume_purpose" { |
106 | 109 | } |
107 | 110 |
|
108 | 111 | variable "cos_bucket_type" { |
| 112 | + default = "region_location" |
109 | 113 | description = "bucket type" |
110 | | - default = "region_location" |
111 | 114 | } |
112 | 115 |
|
113 | 116 | # ssh private key to establish a session with data mover VSI |
@@ -142,25 +145,25 @@ variable "ssh_public_key" { |
142 | 145 | } |
143 | 146 |
|
144 | 147 | variable "total_ipv4_address_count" { |
| 148 | + default = 256 |
145 | 149 | description = "total IPs for subnetwork" |
146 | | - default = 256 |
147 | 150 | } |
148 | 151 |
|
149 | 152 | variable "mover_image_name" { |
150 | 153 | # Regular expresions allowed |
151 | 154 | # Only Terraform 1.2 can connect to Ubuntu 22. |
152 | 155 | # Ubuntu 20.04 is more widely supported |
153 | | - description = "image used for the VSI data mover" |
154 | 156 | default = ".*ubuntu.*20-04.*amd64.*" |
| 157 | + description = "image used for the VSI data mover" |
155 | 158 | } |
156 | 159 |
|
157 | 160 | variable "mover_profile" { |
| 161 | + default = "bx2d-16x64" |
158 | 162 | description = "image used for the VSI data mover" |
159 | | - default = "bx2d-16x64" |
160 | 163 | } |
161 | 164 |
|
162 | 165 | variable "iam_endpoint_url" { |
163 | | - description = "IAM endpoint url" |
164 | 166 | type = string |
165 | 167 | default = "https://iam.cloud.ibm.com" |
| 168 | + description = "IAM endpoint url" |
166 | 169 | } |
0 commit comments