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.

280 lines
5.8 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
4 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
4 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
4 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 "public_key_path" {
  63. description = "The path of the ssh pub key"
  64. default = "~/.ssh/id_rsa.pub"
  65. }
  66. variable "image" {
  67. description = "the image to use"
  68. default = ""
  69. }
  70. variable "image_gfs" {
  71. description = "Glance image to use for GlusterFS"
  72. default = ""
  73. }
  74. variable "ssh_user" {
  75. description = "used to fill out tags for ansible inventory"
  76. default = "ubuntu"
  77. }
  78. variable "ssh_user_gfs" {
  79. description = "used to fill out tags for ansible inventory"
  80. default = "ubuntu"
  81. }
  82. variable "flavor_bastion" {
  83. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  84. default = 3
  85. }
  86. variable "flavor_k8s_master" {
  87. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  88. default = 3
  89. }
  90. variable "flavor_k8s_node" {
  91. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  92. default = 3
  93. }
  94. variable "flavor_etcd" {
  95. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  96. default = 3
  97. }
  98. variable "flavor_gfs_node" {
  99. description = "Use 'openstack flavor list' command to see what your OpenStack instance uses for IDs"
  100. default = 3
  101. }
  102. variable "network_name" {
  103. description = "name of the internal network to use"
  104. default = "internal"
  105. }
  106. variable "network_dns_domain" {
  107. description = "dns_domain for the internal network"
  108. type = string
  109. default = null
  110. }
  111. variable "use_neutron" {
  112. description = "Use neutron"
  113. default = 1
  114. }
  115. variable "subnet_cidr" {
  116. description = "Subnet CIDR block."
  117. type = string
  118. default = "10.0.0.0/24"
  119. }
  120. variable "dns_nameservers" {
  121. description = "An array of DNS name server names used by hosts in this subnet."
  122. type = list(string)
  123. default = []
  124. }
  125. variable "k8s_master_fips" {
  126. description = "specific pre-existing floating IPs to use for master nodes"
  127. type = list(string)
  128. default = []
  129. }
  130. variable "floatingip_pool" {
  131. description = "name of the floating ip pool to use"
  132. default = "external"
  133. }
  134. variable "wait_for_floatingip" {
  135. description = "Terraform will poll the instance until the floating IP has been associated."
  136. default = "false"
  137. }
  138. variable "external_net" {
  139. description = "uuid of the external/public network"
  140. }
  141. variable "supplementary_master_groups" {
  142. description = "supplementary kubespray ansible groups for masters, such kube-node"
  143. default = ""
  144. }
  145. variable "supplementary_node_groups" {
  146. description = "supplementary kubespray ansible groups for worker nodes, such as kube-ingress"
  147. default = ""
  148. }
  149. variable "bastion_allowed_remote_ips" {
  150. description = "An array of CIDRs allowed to SSH to hosts"
  151. type = list(string)
  152. default = ["0.0.0.0/0"]
  153. }
  154. variable "master_allowed_remote_ips" {
  155. description = "An array of CIDRs allowed to access API of masters"
  156. type = list(string)
  157. default = ["0.0.0.0/0"]
  158. }
  159. variable "k8s_allowed_remote_ips" {
  160. description = "An array of CIDRs allowed to SSH to hosts"
  161. type = list(string)
  162. default = []
  163. }
  164. variable "k8s_allowed_egress_ips" {
  165. description = "An array of CIDRs allowed for egress traffic"
  166. type = list(string)
  167. default = ["0.0.0.0/0"]
  168. }
  169. variable "master_allowed_ports" {
  170. type = list(any)
  171. default = []
  172. }
  173. variable "worker_allowed_ports" {
  174. type = list(any)
  175. default = [
  176. {
  177. "protocol" = "tcp"
  178. "port_range_min" = 30000
  179. "port_range_max" = 32767
  180. "remote_ip_prefix" = "0.0.0.0/0"
  181. },
  182. ]
  183. }
  184. variable "use_access_ip" {
  185. default = 1
  186. }
  187. variable "use_server_groups" {
  188. default = false
  189. }
  190. variable "router_id" {
  191. description = "uuid of an externally defined router to use"
  192. default = null
  193. }
  194. variable "router_internal_port_id" {
  195. description = "uuid of the port connection our router to our network"
  196. default = null
  197. }
  198. variable "k8s_nodes" {
  199. default = {}
  200. }
  201. variable "extra_sec_groups" {
  202. default = false
  203. }
  204. variable "extra_sec_groups_name" {
  205. default = "custom"
  206. }
  207. variable "image_uuid" {
  208. description = "uuid of image inside openstack to use"
  209. default = ""
  210. }
  211. variable "image_gfs_uuid" {
  212. description = "uuid of image to be used on gluster fs nodes. If empty defaults to image_uuid"
  213. default = ""
  214. }
  215. variable "image_master" {
  216. description = "uuid of image inside openstack to use"
  217. default = ""
  218. }
  219. variable "image_master_uuid" {
  220. description = "uuid of image to be used on master nodes. If empty defaults to image_uuid"
  221. default = ""
  222. }