add credentials for ab bank sync cronjob [ci skip]

This commit is contained in:
Viktor Barzin 2026-01-10 20:01:06 +00:00
parent d83c5c5526
commit bfa53c5455
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
5 changed files with 22 additions and 12 deletions

View file

@ -132,6 +132,7 @@ variable "clickhouse_password" { type = string }
variable "clickhouse_postgres_password" { type = string } variable "clickhouse_postgres_password" { type = string }
variable "wealthfolio_password_hash" { type = string } variable "wealthfolio_password_hash" { type = string }
variable "aiostreams_database_connection_string" { type = string } variable "aiostreams_database_connection_string" { type = string }
variable "actualbudget_credentials" { type = map(any) }
provider "kubernetes" { provider "kubernetes" {
@ -553,6 +554,8 @@ module "kubernetes_cluster" {
wealthfolio_password_hash = var.wealthfolio_password_hash wealthfolio_password_hash = var.wealthfolio_password_hash
aiostreams_database_connection_string = var.aiostreams_database_connection_string aiostreams_database_connection_string = var.aiostreams_database_connection_string
actualbudget_credentials = var.actualbudget_credentials
} }

View file

@ -1,5 +1,6 @@
variable "tls_secret_name" {} variable "tls_secret_name" {}
variable "tier" { type = string } variable "tier" { type = string }
variable "credentials" { type = map(any) }
# To create a new deployment: # To create a new deployment:
/** /**
@ -26,20 +27,24 @@ module "tls_secret" {
# https://budget-viktor.viktorbarzin.me/ # https://budget-viktor.viktorbarzin.me/
module "viktor" { module "viktor" {
source = "./factory" source = "./factory"
name = "viktor" name = "viktor"
tag = "edge" tag = "edge"
tls_secret_name = var.tls_secret_name tls_secret_name = var.tls_secret_name
depends_on = [kubernetes_namespace.actualbudget] depends_on = [kubernetes_namespace.actualbudget]
tier = var.tier tier = var.tier
budget_encryption_password = lookup(var.credentials["viktor"], "password", null)
sync_id = lookup(var.credentials["viktor"], "sync_id", null)
} }
# https://budget-anca.viktorbarzin.me/ # https://budget-anca.viktorbarzin.me/
module "anca" { module "anca" {
source = "./factory" source = "./factory"
name = "anca" name = "anca"
tag = "edge" tag = "edge"
tls_secret_name = var.tls_secret_name tls_secret_name = var.tls_secret_name
depends_on = [kubernetes_namespace.actualbudget] depends_on = [kubernetes_namespace.actualbudget]
tier = var.tier tier = var.tier
budget_encryption_password = lookup(var.credentials["anca"], "password", null)
sync_id = lookup(var.credentials["anca"], "sync_id", null)
} }

View file

@ -111,6 +111,7 @@ variable "clickhouse_password" { type = string }
variable "clickhouse_postgres_password" { type = string } variable "clickhouse_postgres_password" { type = string }
variable "wealthfolio_password_hash" { type = string } variable "wealthfolio_password_hash" { type = string }
variable "aiostreams_database_connection_string" { type = string } variable "aiostreams_database_connection_string" { type = string }
variable "actualbudget_credentials" { type = map(any) }
variable "defcon_level" { variable "defcon_level" {
@ -809,6 +810,7 @@ module "actualbudget" {
for_each = contains(local.active_modules, "actualbudget") ? { actualbudget = true } : {} for_each = contains(local.active_modules, "actualbudget") ? { actualbudget = true } : {}
tls_secret_name = var.tls_secret_name tls_secret_name = var.tls_secret_name
tier = local.tiers.edge tier = local.tiers.edge
credentials = var.actualbudget_credentials
depends_on = [null_resource.core_services] depends_on = [null_resource.core_services]
} }

Binary file not shown.

Binary file not shown.