Add admin email variable to tofu

This commit is contained in:
Tobias Reisinger 2025-05-06 02:07:48 +02:00
parent f28e81fc9d
commit 3cb196f8c7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 14 additions and 4 deletions

View file

@ -105,6 +105,8 @@ provider "tailscale" {
module "infrastructure" {
source = "./modules/infrastructure"
admin_email = var.admin_email
scaleway_project_id = var.scaleway_project_id
default_ssh_key = var.default_ssh_key
@ -137,6 +139,8 @@ provider "postgresql" {
module "services" {
source = "./modules/services"
admin_email = var.admin_email
authentik_url = var.authentik_url
services = var.services

View file

@ -8,7 +8,7 @@ resource "scaleway_account_ssh_key" "default" {
}
data "scaleway_iam_user" "serguzim" {
email = "tobias@msrg.cc"
email = var.admin_email
}
resource "scaleway_iam_application" "service_applications" {

View file

@ -1,3 +1,5 @@
variable "admin_email" {}
variable "scaleway_project_id" {
sensitive = true
}

View file

@ -25,7 +25,7 @@ data "authentik_property_mapping_provider_scope" "default_scopes" {
resource "authentik_user" "default" {
username = "serguzim"
name = "Tobias Reisinger"
email = "tobias@msrg.cc"
email = var.admin_email
}
resource "authentik_property_mapping_provider_scope" "minio" {

View file

@ -1,5 +1,6 @@
variable "authentik_url" {
}
variable "admin_email" {}
variable "authentik_url" {}
variable "services" {
type = map(object({

View file

@ -6,6 +6,9 @@ variable "backend_bucket" {
sensitive = false
}
variable "admin_email" {
default = "tobias@msrg.cc"
}
variable "authentik_url" {
default = "https://auth.serguzim.me"