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
8.3 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
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
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
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. ---
  2. # Tests for contrib/terraform/
  3. .terraform_install:
  4. extends: .job
  5. before_script:
  6. - update-alternatives --install /usr/bin/python python /usr/bin/python3 1
  7. - ./tests/scripts/rebase.sh
  8. - ./tests/scripts/testcases_prepare.sh
  9. - ./tests/scripts/terraform_install.sh
  10. # Set Ansible config
  11. - cp ansible.cfg ~/.ansible.cfg
  12. # Prepare inventory
  13. - cp contrib/terraform/$PROVIDER/sample-inventory/cluster.tfvars .
  14. - ln -s contrib/terraform/$PROVIDER/hosts
  15. - terraform -chdir="contrib/terraform/$PROVIDER" init
  16. # Copy SSH keypair
  17. - mkdir -p ~/.ssh
  18. - echo "$PACKET_PRIVATE_KEY" | base64 -d > ~/.ssh/id_rsa
  19. - chmod 400 ~/.ssh/id_rsa
  20. - echo "$PACKET_PUBLIC_KEY" | base64 -d > ~/.ssh/id_rsa.pub
  21. - mkdir -p contrib/terraform/$PROVIDER/group_vars
  22. # Random subnet to avoid routing conflicts
  23. - export TF_VAR_subnet_cidr="10.$(( $RANDOM % 256 )).$(( $RANDOM % 256 )).0/24"
  24. .terraform_validate:
  25. extends: .terraform_install
  26. stage: unit-tests
  27. tags: [light]
  28. only: ['master', /^pr-.*$/]
  29. script:
  30. - terraform -chdir="contrib/terraform/$PROVIDER" validate
  31. - terraform -chdir="contrib/terraform/$PROVIDER" fmt -check -diff
  32. .terraform_apply:
  33. extends: .terraform_install
  34. tags: [light]
  35. stage: deploy-part3
  36. when: manual
  37. only: [/^pr-.*$/]
  38. artifacts:
  39. when: always
  40. paths:
  41. - cluster-dump/
  42. variables:
  43. ANSIBLE_INVENTORY_UNPARSED_FAILED: "true"
  44. ANSIBLE_INVENTORY: hosts
  45. CI_PLATFORM: tf
  46. TF_VAR_ssh_user: $SSH_USER
  47. TF_VAR_cluster_name: $CI_JOB_ID
  48. script:
  49. - tests/scripts/testcases_run.sh
  50. after_script:
  51. # Cleanup regardless of exit code
  52. - chronic ./tests/scripts/testcases_cleanup.sh
  53. tf-0.15.x-validate-openstack:
  54. extends: .terraform_validate
  55. variables:
  56. TF_VERSION: $TERRAFORM_15_VERSION
  57. PROVIDER: openstack
  58. CLUSTER: $CI_COMMIT_REF_NAME
  59. tf-0.15.x-validate-packet:
  60. extends: .terraform_validate
  61. variables:
  62. TF_VERSION: $TERRAFORM_15_VERSION
  63. PROVIDER: packet
  64. CLUSTER: $CI_COMMIT_REF_NAME
  65. tf-0.15.x-validate-aws:
  66. extends: .terraform_validate
  67. variables:
  68. TF_VERSION: $TERRAFORM_15_VERSION
  69. PROVIDER: aws
  70. CLUSTER: $CI_COMMIT_REF_NAME
  71. tf-0.15.x-validate-exoscale:
  72. extends: .terraform_validate
  73. variables:
  74. TF_VERSION: $TERRAFORM_15_VERSION
  75. PROVIDER: exoscale
  76. tf-0.15.x-validate-vsphere:
  77. extends: .terraform_validate
  78. variables:
  79. TF_VERSION: $TERRAFORM_15_VERSION
  80. PROVIDER: vsphere
  81. CLUSTER: $CI_COMMIT_REF_NAME
  82. tf-0.15.x-validate-upcloud:
  83. extends: .terraform_validate
  84. variables:
  85. TF_VERSION: $TERRAFORM_15_VERSION
  86. PROVIDER: upcloud
  87. CLUSTER: $CI_COMMIT_REF_NAME
  88. tf-0.14.x-validate-openstack:
  89. extends: .terraform_validate
  90. variables:
  91. TF_VERSION: $TERRAFORM_14_VERSION
  92. PROVIDER: openstack
  93. CLUSTER: $CI_COMMIT_REF_NAME
  94. tf-0.14.x-validate-packet:
  95. extends: .terraform_validate
  96. variables:
  97. TF_VERSION: $TERRAFORM_14_VERSION
  98. PROVIDER: packet
  99. CLUSTER: $CI_COMMIT_REF_NAME
  100. tf-0.14.x-validate-aws:
  101. extends: .terraform_validate
  102. variables:
  103. TF_VERSION: $TERRAFORM_14_VERSION
  104. PROVIDER: aws
  105. CLUSTER: $CI_COMMIT_REF_NAME
  106. tf-0.14.x-validate-exoscale:
  107. extends: .terraform_validate
  108. variables:
  109. TF_VERSION: $TERRAFORM_14_VERSION
  110. PROVIDER: exoscale
  111. tf-0.14.x-validate-vsphere:
  112. extends: .terraform_validate
  113. variables:
  114. TF_VERSION: $TERRAFORM_14_VERSION
  115. PROVIDER: vsphere
  116. CLUSTER: $CI_COMMIT_REF_NAME
  117. tf-0.14.x-validate-upcloud:
  118. extends: .terraform_validate
  119. variables:
  120. TF_VERSION: $TERRAFORM_14_VERSION
  121. PROVIDER: upcloud
  122. CLUSTER: $CI_COMMIT_REF_NAME
  123. # tf-packet-ubuntu16-default:
  124. # extends: .terraform_apply
  125. # variables:
  126. # TF_VERSION: $TERRAFORM_14_VERSION
  127. # PROVIDER: packet
  128. # CLUSTER: $CI_COMMIT_REF_NAME
  129. # TF_VAR_number_of_k8s_masters: "1"
  130. # TF_VAR_number_of_k8s_nodes: "1"
  131. # TF_VAR_plan_k8s_masters: t1.small.x86
  132. # TF_VAR_plan_k8s_nodes: t1.small.x86
  133. # TF_VAR_facility: ewr1
  134. # TF_VAR_public_key_path: ""
  135. # TF_VAR_operating_system: ubuntu_16_04
  136. #
  137. # tf-packet-ubuntu18-default:
  138. # extends: .terraform_apply
  139. # variables:
  140. # TF_VERSION: $TERRAFORM_14_VERSION
  141. # PROVIDER: packet
  142. # CLUSTER: $CI_COMMIT_REF_NAME
  143. # TF_VAR_number_of_k8s_masters: "1"
  144. # TF_VAR_number_of_k8s_nodes: "1"
  145. # TF_VAR_plan_k8s_masters: t1.small.x86
  146. # TF_VAR_plan_k8s_nodes: t1.small.x86
  147. # TF_VAR_facility: ams1
  148. # TF_VAR_public_key_path: ""
  149. # TF_VAR_operating_system: ubuntu_18_04
  150. .ovh_variables: &ovh_variables
  151. OS_AUTH_URL: https://auth.cloud.ovh.net/v3
  152. OS_PROJECT_ID: 8d3cd5d737d74227ace462dee0b903fe
  153. OS_PROJECT_NAME: "9361447987648822"
  154. OS_USER_DOMAIN_NAME: Default
  155. OS_PROJECT_DOMAIN_ID: default
  156. OS_USERNAME: 8XuhBMfkKVrk
  157. OS_REGION_NAME: UK1
  158. OS_INTERFACE: public
  159. OS_IDENTITY_API_VERSION: "3"
  160. # Elastx is generously donating resources for Kubespray on Openstack CI
  161. # Contacts: @gix @bl0m1
  162. .elastx_variables: &elastx_variables
  163. OS_AUTH_URL: https://ops.elastx.cloud:5000
  164. OS_PROJECT_ID: 564c6b461c6b44b1bb19cdb9c2d928e4
  165. OS_PROJECT_NAME: kubespray_ci
  166. OS_USER_DOMAIN_NAME: Default
  167. OS_PROJECT_DOMAIN_ID: default
  168. OS_USERNAME: kubespray@root314.com
  169. OS_REGION_NAME: se-sto
  170. OS_INTERFACE: public
  171. OS_IDENTITY_API_VERSION: "3"
  172. TF_VAR_router_id: "ab95917c-41fb-4881-b507-3a6dfe9403df"
  173. # Since ELASTX is in Stockholm, Mitogen helps with latency
  174. MITOGEN_ENABLE: "false"
  175. # Mitogen doesn't support interpreter discovery yet
  176. ANSIBLE_PYTHON_INTERPRETER: "/usr/bin/python3"
  177. tf-elastx_cleanup:
  178. stage: unit-tests
  179. tags: [light]
  180. image: python
  181. variables:
  182. <<: *elastx_variables
  183. before_script:
  184. - pip install -r scripts/openstack-cleanup/requirements.txt
  185. script:
  186. - ./scripts/openstack-cleanup/main.py
  187. tf-elastx_ubuntu18-calico:
  188. extends: .terraform_apply
  189. stage: deploy-part3
  190. when: on_success
  191. allow_failure: true
  192. variables:
  193. <<: *elastx_variables
  194. TF_VERSION: $TERRAFORM_15_VERSION
  195. PROVIDER: openstack
  196. CLUSTER: $CI_COMMIT_REF_NAME
  197. ANSIBLE_TIMEOUT: "60"
  198. SSH_USER: ubuntu
  199. TF_VAR_number_of_k8s_masters: "1"
  200. TF_VAR_number_of_k8s_masters_no_floating_ip: "0"
  201. TF_VAR_number_of_k8s_masters_no_floating_ip_no_etcd: "0"
  202. TF_VAR_number_of_etcd: "0"
  203. TF_VAR_number_of_k8s_nodes: "1"
  204. TF_VAR_number_of_k8s_nodes_no_floating_ip: "0"
  205. TF_VAR_number_of_gfs_nodes_no_floating_ip: "0"
  206. TF_VAR_number_of_bastions: "0"
  207. TF_VAR_number_of_k8s_masters_no_etcd: "0"
  208. TF_VAR_floatingip_pool: "elx-public1"
  209. TF_VAR_dns_nameservers: '["1.1.1.1", "8.8.8.8", "8.8.4.4"]'
  210. TF_VAR_use_access_ip: "0"
  211. TF_VAR_external_net: "600b8501-78cb-4155-9c9f-23dfcba88828"
  212. TF_VAR_network_name: "ci-$CI_JOB_ID"
  213. TF_VAR_az_list: '["sto1"]'
  214. TF_VAR_az_list_node: '["sto1"]'
  215. TF_VAR_flavor_k8s_master: 3f73fc93-ec61-4808-88df-2580d94c1a9b # v1-standard-2
  216. TF_VAR_flavor_k8s_node: 3f73fc93-ec61-4808-88df-2580d94c1a9b # v1-standard-2
  217. TF_VAR_image: ubuntu-18.04-server-latest
  218. TF_VAR_k8s_allowed_remote_ips: '["0.0.0.0/0"]'
  219. # OVH voucher expired, commenting job until things are sorted out
  220. # tf-ovh_cleanup:
  221. # stage: unit-tests
  222. # tags: [light]
  223. # image: python
  224. # environment: ovh
  225. # variables:
  226. # <<: *ovh_variables
  227. # before_script:
  228. # - pip install -r scripts/openstack-cleanup/requirements.txt
  229. # script:
  230. # - ./scripts/openstack-cleanup/main.py
  231. # tf-ovh_ubuntu18-calico:
  232. # extends: .terraform_apply
  233. # when: on_success
  234. # environment: ovh
  235. # variables:
  236. # <<: *ovh_variables
  237. # TF_VERSION: $TERRAFORM_14_VERSION
  238. # PROVIDER: openstack
  239. # CLUSTER: $CI_COMMIT_REF_NAME
  240. # ANSIBLE_TIMEOUT: "60"
  241. # SSH_USER: ubuntu
  242. # TF_VAR_number_of_k8s_masters: "0"
  243. # TF_VAR_number_of_k8s_masters_no_floating_ip: "1"
  244. # TF_VAR_number_of_k8s_masters_no_floating_ip_no_etcd: "0"
  245. # TF_VAR_number_of_etcd: "0"
  246. # TF_VAR_number_of_k8s_nodes: "0"
  247. # TF_VAR_number_of_k8s_nodes_no_floating_ip: "1"
  248. # TF_VAR_number_of_gfs_nodes_no_floating_ip: "0"
  249. # TF_VAR_number_of_bastions: "0"
  250. # TF_VAR_number_of_k8s_masters_no_etcd: "0"
  251. # TF_VAR_use_neutron: "0"
  252. # TF_VAR_floatingip_pool: "Ext-Net"
  253. # TF_VAR_external_net: "6011fbc9-4cbf-46a4-8452-6890a340b60b"
  254. # TF_VAR_network_name: "Ext-Net"
  255. # TF_VAR_flavor_k8s_master: "defa64c3-bd46-43b4-858a-d93bbae0a229" # s1-8
  256. # TF_VAR_flavor_k8s_node: "defa64c3-bd46-43b4-858a-d93bbae0a229" # s1-8
  257. # TF_VAR_image: "Ubuntu 18.04"
  258. # TF_VAR_k8s_allowed_remote_ips: '["0.0.0.0/0"]'