setup gcs backup bucket for longhorn

This commit is contained in:
2025-08-31 20:50:28 +02:00
parent b9a46afb82
commit 2d4cb5d8a5
5 changed files with 129 additions and 19 deletions

View File

@@ -1,13 +1,17 @@
terraform {
required_providers {
gitea = {
source = "go-gitea/gitea"
source = "go-gitea/gitea"
version = "0.5.1"
}
vault = {
source = "vault"
source = "vault"
version = "4.4.0"
}
google = {
source = "google"
version = "7.0.1"
}
}
}
@@ -16,10 +20,16 @@ provider "gitea" { # https://registry.terraform.io/providers/go-gitea/gitea/late
# use GITEA_TOKEN env var
}
provider vault {
provider "vault" {
address = "https://vault.arcodange.duckdns.org"
auth_login_jwt { # TERRAFORM_VAULT_AUTH_JWT environment variable
mount = "gitea_jwt"
role = "gitea_cicd"
}
token = "hvs.CAESINCaMZanSRV-JM2rhHijIcFjT3mNE63jNpy_LInw-qy_Gh4KHGh2cy5PcndCWVhRUWpORmdyZzJISFNZYzlLVGk"
# auth_login_jwt { # TERRAFORM_VAULT_AUTH_JWT environment variable
# mount = "gitea_jwt"
# role = "gitea_cicd"
# }
}
provider "google" {
project = "arcodange"
region = "US-EAST1"
}