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.

125 lines
2.4 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 "AWS_ACCESS_KEY_ID" {
  2. description = "AWS Access Key"
  3. }
  4. variable "AWS_SECRET_ACCESS_KEY" {
  5. description = "AWS Secret Key"
  6. }
  7. variable "AWS_SSH_KEY_NAME" {
  8. description = "Name of the SSH keypair to use in AWS."
  9. }
  10. variable "AWS_DEFAULT_REGION" {
  11. description = "AWS Region"
  12. }
  13. //General Cluster Settings
  14. variable "aws_cluster_name" {
  15. description = "Name of AWS Cluster"
  16. }
  17. data "aws_ami" "distro" {
  18. most_recent = true
  19. filter {
  20. name = "name"
  21. values = ["debian-10-amd64-*"]
  22. }
  23. filter {
  24. name = "virtualization-type"
  25. values = ["hvm"]
  26. }
  27. owners = ["136693071363"] # Debian-10
  28. }
  29. //AWS VPC Variables
  30. variable "aws_vpc_cidr_block" {
  31. description = "CIDR Block for VPC"
  32. }
  33. variable "aws_cidr_subnets_private" {
  34. description = "CIDR Blocks for private subnets in Availability Zones"
  35. type = list(string)
  36. }
  37. variable "aws_cidr_subnets_public" {
  38. description = "CIDR Blocks for public subnets in Availability Zones"
  39. type = list(string)
  40. }
  41. //AWS EC2 Settings
  42. variable "aws_bastion_size" {
  43. description = "EC2 Instance Size of Bastion Host"
  44. }
  45. /*
  46. * AWS EC2 Settings
  47. * The number should be divisable by the number of used
  48. * AWS Availability Zones without an remainder.
  49. */
  50. variable "aws_bastion_num" {
  51. description = "Number of Bastion Nodes"
  52. }
  53. variable "aws_kube_master_num" {
  54. description = "Number of Kubernetes Master Nodes"
  55. }
  56. variable "aws_kube_master_disk_size" {
  57. description = "Disk size for Kubernetes Master Nodes (in GiB)"
  58. }
  59. variable "aws_kube_master_size" {
  60. description = "Instance size of Kube Master Nodes"
  61. }
  62. variable "aws_etcd_num" {
  63. description = "Number of etcd Nodes"
  64. }
  65. variable "aws_etcd_disk_size" {
  66. description = "Disk size for etcd Nodes (in GiB)"
  67. }
  68. variable "aws_etcd_size" {
  69. description = "Instance size of etcd Nodes"
  70. }
  71. variable "aws_kube_worker_num" {
  72. description = "Number of Kubernetes Worker Nodes"
  73. }
  74. variable "aws_kube_worker_disk_size" {
  75. description = "Disk size for Kubernetes Worker Nodes (in GiB)"
  76. }
  77. variable "aws_kube_worker_size" {
  78. description = "Instance size of Kubernetes Worker Nodes"
  79. }
  80. /*
  81. * AWS NLB Settings
  82. *
  83. */
  84. variable "aws_nlb_api_port" {
  85. description = "Port for AWS NLB"
  86. }
  87. variable "k8s_secure_api_port" {
  88. description = "Secure Port of K8S API Server"
  89. }
  90. variable "default_tags" {
  91. description = "Default tags for all resources"
  92. type = map(string)
  93. }
  94. variable "inventory_file" {
  95. description = "Where to store the generated inventory file"
  96. }