feat(deploy): iac/ Vault provisioning + workflow (uses app_roles module from tools) (#99)
All checks were successful
CI/CD Pipeline / Build Docker Cache (push) Successful in 12s
Docker Push / Docker Push (push) Successful in 4m12s
CI/CD Pipeline / CI Pipeline (push) Successful in 6m10s
CI/CD Pipeline / Trigger Docker Push (push) Successful in 11s

Co-authored-by: Gabriel Radureau <arcodange@gmail.com>
Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
This commit was merged in pull request #99.
This commit is contained in:
2026-05-06 13:20:26 +02:00
committed by arcodange
parent 3be6a2b7ef
commit 3fee1e9ed7
4 changed files with 92 additions and 0 deletions

6
iac/backend.tf Normal file
View File

@@ -0,0 +1,6 @@
terraform {
backend "gcs" {
bucket = "arcodange-tf"
prefix = "dance-lessons-coach/main"
}
}

10
iac/main.tf Normal file
View File

@@ -0,0 +1,10 @@
locals {
app = {
name = "dance-lessons-coach"
}
}
module "app_roles" {
source = "git::ssh://git@192.168.1.202:2222/arcodange-org/tools.git//hashicorp-vault/iac/modules/app_roles?depth=1&ref=main"
name = local.app.name
}

17
iac/providers.tf Normal file
View File

@@ -0,0 +1,17 @@
terraform {
required_providers {
vault = {
source = "vault"
version = "4.4.0"
}
}
}
provider "vault" {
address = "https://vault.arcodange.lab"
auth_login_jwt {
# TERRAFORM_VAULT_AUTH_JWT environment variable, set by the gitea OIDC step
mount = "gitea_jwt"
role = "gitea_cicd_dance-lessons-coach"
}
}