Add admin email variable to tofu
This commit is contained in:
parent
f28e81fc9d
commit
3cb196f8c7
6 changed files with 14 additions and 4 deletions
4
main.tf
4
main.tf
|
@ -105,6 +105,8 @@ provider "tailscale" {
|
||||||
module "infrastructure" {
|
module "infrastructure" {
|
||||||
source = "./modules/infrastructure"
|
source = "./modules/infrastructure"
|
||||||
|
|
||||||
|
admin_email = var.admin_email
|
||||||
|
|
||||||
scaleway_project_id = var.scaleway_project_id
|
scaleway_project_id = var.scaleway_project_id
|
||||||
|
|
||||||
default_ssh_key = var.default_ssh_key
|
default_ssh_key = var.default_ssh_key
|
||||||
|
@ -137,6 +139,8 @@ provider "postgresql" {
|
||||||
module "services" {
|
module "services" {
|
||||||
source = "./modules/services"
|
source = "./modules/services"
|
||||||
|
|
||||||
|
admin_email = var.admin_email
|
||||||
|
|
||||||
authentik_url = var.authentik_url
|
authentik_url = var.authentik_url
|
||||||
|
|
||||||
services = var.services
|
services = var.services
|
||||||
|
|
|
@ -8,7 +8,7 @@ resource "scaleway_account_ssh_key" "default" {
|
||||||
}
|
}
|
||||||
|
|
||||||
data "scaleway_iam_user" "serguzim" {
|
data "scaleway_iam_user" "serguzim" {
|
||||||
email = "tobias@msrg.cc"
|
email = var.admin_email
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "scaleway_iam_application" "service_applications" {
|
resource "scaleway_iam_application" "service_applications" {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
variable "admin_email" {}
|
||||||
|
|
||||||
variable "scaleway_project_id" {
|
variable "scaleway_project_id" {
|
||||||
sensitive = true
|
sensitive = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ data "authentik_property_mapping_provider_scope" "default_scopes" {
|
||||||
resource "authentik_user" "default" {
|
resource "authentik_user" "default" {
|
||||||
username = "serguzim"
|
username = "serguzim"
|
||||||
name = "Tobias Reisinger"
|
name = "Tobias Reisinger"
|
||||||
email = "tobias@msrg.cc"
|
email = var.admin_email
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "authentik_property_mapping_provider_scope" "minio" {
|
resource "authentik_property_mapping_provider_scope" "minio" {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
variable "authentik_url" {
|
variable "admin_email" {}
|
||||||
}
|
|
||||||
|
variable "authentik_url" {}
|
||||||
|
|
||||||
variable "services" {
|
variable "services" {
|
||||||
type = map(object({
|
type = map(object({
|
||||||
|
|
|
@ -6,6 +6,9 @@ variable "backend_bucket" {
|
||||||
sensitive = false
|
sensitive = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "admin_email" {
|
||||||
|
default = "tobias@msrg.cc"
|
||||||
|
}
|
||||||
|
|
||||||
variable "authentik_url" {
|
variable "authentik_url" {
|
||||||
default = "https://auth.serguzim.me"
|
default = "https://auth.serguzim.me"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue