breaking: re-boostrap the repository on a clean state with the 2022 terraform tooling

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
pull/177/head
Damien Duportal 1 year ago
parent 7c1ce88c8e
commit 340146e701
No known key found for this signature in database
GPG Key ID: 2550AC61054D1C73

3
.gitignore vendored

@ -6,7 +6,6 @@
*.sw*
.*.json
.tf-prepare/
# .tf-remote-state-enabled Deprecated since terraform 0.9 upgrade
.tf-remote-state-enabled
.terraform
ssh_key/jenkinsolblak.pub
backend-config

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule ".shared-tools"]
path = .shared-tools
url = https://github.com/jenkins-infra/shared-tools

@ -0,0 +1 @@
Subproject commit 91feac6df7739145101516231453a865cf75ad39

@ -0,0 +1,39 @@
parallel(
failFast: false,
'terraform': {
terraform(
stagingCredentials: [
azureServicePrincipal(
credentialsId: 'staging-terraform-azure-serviceprincipal',
subscriptionIdVariable: 'ARM_SUBSCRIPTION_ID',
clientIdVariable: 'ARM_CLIENT_ID',
clientSecretVariable: 'ARM_CLIENT_SECRET',
tenantIdVariable: 'ARM_TENANT_ID',
),
file(
credentialsId: 'staging-terraform-azure-backend-config',
variable: 'BACKEND_CONFIG_FILE',
),
],
productionCredentials: [
azureServicePrincipal(
credentialsId: 'production-terraform-azure-serviceprincipal',
subscriptionIdVariable: 'ARM_SUBSCRIPTION_ID',
clientIdVariable: 'ARM_CLIENT_ID',
clientSecretVariable: 'ARM_CLIENT_SECRET',
tenantIdVariable: 'ARM_TENANT_ID',
),
file(
credentialsId: 'production-terraform-azure-backend-config',
variable: 'BACKEND_CONFIG_FILE',
),
],
)
},
// 'updatecli': {
// updatecli(action: 'diff')
// if (env.BRANCH_IS_PRIMARY) {
// updatecli(action: 'apply', cronTriggerExpression: '@weekly')
// }
// },
)

@ -1,14 +1,4 @@
# Terraform 0.9 is designed to find all data it needs at the root of the project and
# do not yet support something like 'terraform init plan_directory'.
# This feature is introduced in v 0.10
# In order to keep the project architecture as is, we just add a second backend declaration
# at the root of the project and we'll delete this file once we upgrade to 0.10
# doc: https://www.terraform.io/docs/backends/config.html
# issue: https://github.com/hashicorp/terraform/issues/14066
# https://github.com/hashicorp/terraform/blob/master/CHANGELOG.md#0100-beta1-june-22-2017
terraform {
backend "azurerm" {}
backend "azurerm" {
}
}

Loading…
Cancel
Save