You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

313 lines
6.6 KiB

Fix terraform0.13 errors (#7077) * [terraform/aws] Fix Terraform >=0.13 warnings Terraform >=0.13 gives the following warning: ``` Warning: Interpolation-only expressions are deprecated ``` The fix was tested as follows: ``` rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` which gave no errors nor warnings. * [terraform/openstack] Fixes for Terraform >=0.13 Terraform >=0.13 gives the following error: ``` Error: Failed to install providers Could not find required providers, but found possible alternatives: hashicorp/openstack -> terraform-provider-openstack/openstack ``` This patch fixes these errors. This fix was tested as follows: ``` rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` which gave no errors nor warnings for Terraform 0.13.5 and Terraform 0.14.3. Unfortunately, 0.12.x gives a harmless warning, but with 0.14.3 out the door, I guess we need to move on. * [terraform/packet] Fixes for Terraform >=0.13 This fix was tested as follows: ``` export PACKET_AUTH_TOKEN=blah-blah rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` Errors are gone, but warnings still remain. It is impossible to please all three versions of Terraform. * Add tests for Terraform >=0.13
3 years ago
Fix terraform0.13 errors (#7077) * [terraform/aws] Fix Terraform >=0.13 warnings Terraform >=0.13 gives the following warning: ``` Warning: Interpolation-only expressions are deprecated ``` The fix was tested as follows: ``` rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` which gave no errors nor warnings. * [terraform/openstack] Fixes for Terraform >=0.13 Terraform >=0.13 gives the following error: ``` Error: Failed to install providers Could not find required providers, but found possible alternatives: hashicorp/openstack -> terraform-provider-openstack/openstack ``` This patch fixes these errors. This fix was tested as follows: ``` rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` which gave no errors nor warnings for Terraform 0.13.5 and Terraform 0.14.3. Unfortunately, 0.12.x gives a harmless warning, but with 0.14.3 out the door, I guess we need to move on. * [terraform/packet] Fixes for Terraform >=0.13 This fix was tested as follows: ``` export PACKET_AUTH_TOKEN=blah-blah rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` Errors are gone, but warnings still remain. It is impossible to please all three versions of Terraform. * Add tests for Terraform >=0.13
3 years ago
Fix terraform0.13 errors (#7077) * [terraform/aws] Fix Terraform >=0.13 warnings Terraform >=0.13 gives the following warning: ``` Warning: Interpolation-only expressions are deprecated ``` The fix was tested as follows: ``` rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` which gave no errors nor warnings. * [terraform/openstack] Fixes for Terraform >=0.13 Terraform >=0.13 gives the following error: ``` Error: Failed to install providers Could not find required providers, but found possible alternatives: hashicorp/openstack -> terraform-provider-openstack/openstack ``` This patch fixes these errors. This fix was tested as follows: ``` rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` which gave no errors nor warnings for Terraform 0.13.5 and Terraform 0.14.3. Unfortunately, 0.12.x gives a harmless warning, but with 0.14.3 out the door, I guess we need to move on. * [terraform/packet] Fixes for Terraform >=0.13 This fix was tested as follows: ``` export PACKET_AUTH_TOKEN=blah-blah rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate ``` Errors are gone, but warnings still remain. It is impossible to please all three versions of Terraform. * Add tests for Terraform >=0.13
3 years ago
  1. variable "cluster_name" {
  2. default = "example"
  3. }
  4. variable "az_list" {
  5. description = "List of Availability Zones to use for masters in your OpenStack cluster"
  6. type = list(string)
  7. default = ["nova"]
  8. }
  9. variable "az_list_node" {
  10. description = "List of Availability Zones to use for nodes in your OpenStack cluster"
  11. type = list(string)
  12. default = ["nova"]
  13. }
  14. variable "number_of_bastions" {
  15. default = 1
  16. }
  17. variable "number_of_k8s_masters" {
  18. default = 2
  19. }
  20. variable "number_of_k8s_masters_no_etcd" {
  21. default = 2
  22. }
  23. variable "number_of_etcd" {
  24. default = 2
  25. }
  26. variable "number_of_k8s_masters_no_floating_ip" {
  27. default = 2
  28. }
  29. variable "number_of_k8s_masters_no_floating_ip_no_etcd" {
  30. default = 2
  31. }
  32. variable "number_of_k8s_nodes" {
  33. default = 1
  34. }
  35. variable "number_of_k8s_nodes_no_floating_ip" {
  36. default = 1
  37. }
  38. variable "number_of_gfs_nodes_no_floating_ip" {
  39. default = 0
  40. }
  41. variable "bastion_root_volume_size_in_gb" {
  42. default = 0
  43. }
  44. variable "etcd_root_volume_size_in_gb" {
  45. default = 0
  46. }
  47. variable "master_root_volume_size_in_gb" {
  48. default = 0
  49. }
  50. variable "node_root_volume_size_in_gb" {
  51. default = 0
  52. }
  53. variable "gfs_root_volume_size_in_gb" {
  54. default = 0
  55. }
  56. variable "gfs_volume_size_in_gb" {
  57. default = 75
  58. }
  59. variable "master_volume_type" {
  60. default = "Default"
  61. }
  62. variable "node_volume_type" {
  63. default = "Default"
  64. }
  65. variable "public_key_path" {
  66. description = "The path of the ssh pub key"
  67. default = "~/.ssh/id_rsa.pub"
  68. }
  69. variable "image" {
  70. description = "the image to use"
  71. default = ""
  72. }
  73. variable "image_gfs" {
  74. description = "Glance image to use for GlusterFS"
  75. default = ""
  76. }
  77. variable "ssh_user" {
  78. description = "used to fill out tags for ansible inventory"
  79. default = "ubuntu"
  80. }
  81. variable "ssh_user_gfs" {
  82. description = "used to fill out tags for ansible inventory"
  83. default = "ubuntu"
  84. }
  85. variable "flavor_bastion" {
  86. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  87. default = 3
  88. }
  89. variable "flavor_k8s_master" {
  90. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  91. default = 3
  92. }
  93. variable "flavor_k8s_node" {
  94. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  95. default = 3
  96. }
  97. variable "flavor_etcd" {
  98. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  99. default = 3
  100. }
  101. variable "flavor_gfs_node" {
  102. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  103. default = 3
  104. }
  105. variable "network_name" {
  106. description = "name of the internal network to use"
  107. default = "internal"
  108. }
  109. variable "network_dns_domain" {
  110. description = "dns_domain for the internal network"
  111. type = string
  112. default = null
  113. }
  114. variable "use_neutron" {
  115. description = "Use neutron"
  116. default = 1
  117. }
  118. variable "port_security_enabled" {
  119. description = "Enable port security on the internal network"
  120. type = bool
  121. default = "true"
  122. }
  123. variable "subnet_cidr" {
  124. description = "Subnet CIDR block."
  125. type = string
  126. default = "10.0.0.0/24"
  127. }
  128. variable "dns_nameservers" {
  129. description = "An array of DNS name server names used by hosts in this subnet."
  130. type = list(string)
  131. default = []
  132. }
  133. variable "k8s_master_fips" {
  134. description = "specific pre-existing floating IPs to use for master nodes"
  135. type = list(string)
  136. default = []
  137. }
  138. variable "bastion_fips" {
  139. description = "specific pre-existing floating IPs to use for bastion node"
  140. type = list(string)
  141. default = []
  142. }
  143. variable "floatingip_pool" {
  144. description = "name of the floating ip pool to use"
  145. default = "external"
  146. }
  147. variable "wait_for_floatingip" {
  148. description = "Terraform will poll the instance until the floating IP has been associated."
  149. default = "false"
  150. }
  151. variable "external_net" {
  152. description = "uuid of the external/public network"
  153. }
  154. variable "supplementary_master_groups" {
  155. description = "supplementary kubespray ansible groups for masters, such kube_node"
  156. default = ""
  157. }
  158. variable "supplementary_node_groups" {
  159. description = "supplementary kubespray ansible groups for worker nodes, such as kube_ingress"
  160. default = ""
  161. }
  162. variable "bastion_allowed_remote_ips" {
  163. description = "An array of CIDRs allowed to SSH to hosts"
  164. type = list(string)
  165. default = ["0.0.0.0/0"]
  166. }
  167. variable "master_allowed_remote_ips" {
  168. description = "An array of CIDRs allowed to access API of masters"
  169. type = list(string)
  170. default = ["0.0.0.0/0"]
  171. }
  172. variable "k8s_allowed_remote_ips" {
  173. description = "An array of CIDRs allowed to SSH to hosts"
  174. type = list(string)
  175. default = []
  176. }
  177. variable "k8s_allowed_egress_ips" {
  178. description = "An array of CIDRs allowed for egress traffic"
  179. type = list(string)
  180. default = ["0.0.0.0/0"]
  181. }
  182. variable "master_allowed_ports" {
  183. type = list(any)
  184. default = []
  185. }
  186. variable "worker_allowed_ports" {
  187. type = list(any)
  188. default = [
  189. {
  190. "protocol" = "tcp"
  191. "port_range_min" = 30000
  192. "port_range_max" = 32767
  193. "remote_ip_prefix" = "0.0.0.0/0"
  194. },
  195. ]
  196. }
  197. variable "use_access_ip" {
  198. default = 1
  199. }
  200. variable "master_server_group_policy" {
  201. description = "desired server group policy, e.g. anti-affinity"
  202. default = ""
  203. }
  204. variable "node_server_group_policy" {
  205. description = "desired server group policy, e.g. anti-affinity"
  206. default = ""
  207. }
  208. variable "etcd_server_group_policy" {
  209. description = "desired server group policy, e.g. anti-affinity"
  210. default = ""
  211. }
  212. variable "router_id" {
  213. description = "uuid of an externally defined router to use"
  214. default = null
  215. }
  216. variable "router_internal_port_id" {
  217. description = "uuid of the port connection our router to our network"
  218. default = null
  219. }
  220. variable "k8s_nodes" {
  221. default = {}
  222. }
  223. variable "extra_sec_groups" {
  224. default = false
  225. }
  226. variable "extra_sec_groups_name" {
  227. default = "custom"
  228. }
  229. variable "image_uuid" {
  230. description = "uuid of image inside openstack to use"
  231. default = ""
  232. }
  233. variable "image_gfs_uuid" {
  234. description = "uuid of image to be used on gluster fs nodes. If empty defaults to image_uuid"
  235. default = ""
  236. }
  237. variable "image_master" {
  238. description = "uuid of image inside openstack to use"
  239. default = ""
  240. }
  241. variable "image_master_uuid" {
  242. description = "uuid of image to be used on master nodes. If empty defaults to image_uuid"
  243. default = ""
  244. }
  245. variable "group_vars_path" {
  246. description = "path to the inventory group vars directory"
  247. type = string
  248. default = "./group_vars"
  249. }