mirror of https://github.com/jenkins-infra/azure
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>pull/177/head
parent
7c1ce88c8e
commit
340146e701
@ -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…
Reference in new issue