|
@ -12,7 +12,7 @@ |
|
|
# Prepare inventory |
|
|
# Prepare inventory |
|
|
- cp contrib/terraform/$PROVIDER/sample-inventory/cluster.tfvars . |
|
|
- cp contrib/terraform/$PROVIDER/sample-inventory/cluster.tfvars . |
|
|
- ln -s contrib/terraform/$PROVIDER/hosts |
|
|
- ln -s contrib/terraform/$PROVIDER/hosts |
|
|
- terraform init contrib/terraform/$PROVIDER |
|
|
|
|
|
|
|
|
- terraform -chdir="contrib/terraform/$PROVIDER" init |
|
|
# Copy SSH keypair |
|
|
# Copy SSH keypair |
|
|
- mkdir -p ~/.ssh |
|
|
- mkdir -p ~/.ssh |
|
|
- echo "$PACKET_PRIVATE_KEY" | base64 -d > ~/.ssh/id_rsa |
|
|
- echo "$PACKET_PRIVATE_KEY" | base64 -d > ~/.ssh/id_rsa |
|
@ -28,8 +28,8 @@ |
|
|
tags: [light] |
|
|
tags: [light] |
|
|
only: ['master', /^pr-.*$/] |
|
|
only: ['master', /^pr-.*$/] |
|
|
script: |
|
|
script: |
|
|
- terraform validate -var-file=cluster.tfvars contrib/terraform/$PROVIDER |
|
|
|
|
|
- terraform fmt -check -diff contrib/terraform/$PROVIDER |
|
|
|
|
|
|
|
|
- terraform -chdir="contrib/terraform/$PROVIDER" validate |
|
|
|
|
|
- terraform -chdir="contrib/terraform/$PROVIDER" fmt -check -diff |
|
|
|
|
|
|
|
|
.terraform_apply: |
|
|
.terraform_apply: |
|
|
extends: .terraform_install |
|
|
extends: .terraform_install |
|
@ -53,44 +53,44 @@ |
|
|
# Cleanup regardless of exit code |
|
|
# Cleanup regardless of exit code |
|
|
- chronic ./tests/scripts/testcases_cleanup.sh |
|
|
- chronic ./tests/scripts/testcases_cleanup.sh |
|
|
|
|
|
|
|
|
tf-0.13.x-validate-openstack: |
|
|
|
|
|
|
|
|
tf-0.15.x-validate-openstack: |
|
|
extends: .terraform_validate |
|
|
extends: .terraform_validate |
|
|
variables: |
|
|
variables: |
|
|
TF_VERSION: $TERRAFORM_13_VERSION |
|
|
|
|
|
|
|
|
TF_VERSION: $TERRAFORM_15_VERSION |
|
|
PROVIDER: openstack |
|
|
PROVIDER: openstack |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
|
|
|
|
|
|
tf-0.13.x-validate-packet: |
|
|
|
|
|
|
|
|
tf-0.15.x-validate-packet: |
|
|
extends: .terraform_validate |
|
|
extends: .terraform_validate |
|
|
variables: |
|
|
variables: |
|
|
TF_VERSION: $TERRAFORM_13_VERSION |
|
|
|
|
|
|
|
|
TF_VERSION: $TERRAFORM_15_VERSION |
|
|
PROVIDER: packet |
|
|
PROVIDER: packet |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
|
|
|
|
|
|
tf-0.13.x-validate-aws: |
|
|
|
|
|
|
|
|
tf-0.15.x-validate-aws: |
|
|
extends: .terraform_validate |
|
|
extends: .terraform_validate |
|
|
variables: |
|
|
variables: |
|
|
TF_VERSION: $TERRAFORM_13_VERSION |
|
|
|
|
|
|
|
|
TF_VERSION: $TERRAFORM_15_VERSION |
|
|
PROVIDER: aws |
|
|
PROVIDER: aws |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
|
|
|
|
|
|
tf-0.13.x-validate-exoscale: |
|
|
|
|
|
|
|
|
tf-0.15.x-validate-exoscale: |
|
|
extends: .terraform_validate |
|
|
extends: .terraform_validate |
|
|
variables: |
|
|
variables: |
|
|
TF_VERSION: $TERRAFORM_13_VERSION |
|
|
|
|
|
|
|
|
TF_VERSION: $TERRAFORM_15_VERSION |
|
|
PROVIDER: exoscale |
|
|
PROVIDER: exoscale |
|
|
|
|
|
|
|
|
tf-0.13.x-validate-vsphere: |
|
|
|
|
|
|
|
|
tf-0.15.x-validate-vsphere: |
|
|
extends: .terraform_validate |
|
|
extends: .terraform_validate |
|
|
variables: |
|
|
variables: |
|
|
TF_VERSION: $TERRAFORM_13_VERSION |
|
|
|
|
|
|
|
|
TF_VERSION: $TERRAFORM_15_VERSION |
|
|
PROVIDER: vsphere |
|
|
PROVIDER: vsphere |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
|
|
|
|
|
|
tf-0.13.x-validate-upcloud: |
|
|
|
|
|
|
|
|
tf-0.15.x-validate-upcloud: |
|
|
extends: .terraform_validate |
|
|
extends: .terraform_validate |
|
|
variables: |
|
|
variables: |
|
|
TF_VERSION: $TERRAFORM_13_VERSION |
|
|
|
|
|
|
|
|
TF_VERSION: $TERRAFORM_15_VERSION |
|
|
PROVIDER: upcloud |
|
|
PROVIDER: upcloud |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
|
|
|
|
|
@ -210,7 +210,7 @@ tf-elastx_ubuntu18-calico: |
|
|
allow_failure: true |
|
|
allow_failure: true |
|
|
variables: |
|
|
variables: |
|
|
<<: *elastx_variables |
|
|
<<: *elastx_variables |
|
|
TF_VERSION: $TERRAFORM_14_VERSION |
|
|
|
|
|
|
|
|
TF_VERSION: $TERRAFORM_15_VERSION |
|
|
PROVIDER: openstack |
|
|
PROVIDER: openstack |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
CLUSTER: $CI_COMMIT_REF_NAME |
|
|
ANSIBLE_TIMEOUT: "60" |
|
|
ANSIBLE_TIMEOUT: "60" |
|
|