From 12b3dd47e8ecdc6a7145bcd42be3e29a5d66b632 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Sun, 4 May 2025 10:26:42 -0400 Subject: [PATCH] authelia --- .vscode/settings.json | 5 ++++- charts/apps/authelia/values.yaml | 2 ++ flake.nix | 1 + tf-modules.tf | 12 ++++++++++++ tf-provider.tf | 5 +++++ tf-variables.tf | 11 ++++++++--- 6 files changed, 32 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 233cfd3..bf0800e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { "yaml.schemas": { "https://json.schemastore.org/helmfile.json": "file:///Users/asosnovsky/git/personal/homelab/k8s/argoapps/apps-values/ingresses.yaml" - } + }, + "cSpell.words": [ + "authelia" + ] } \ No newline at end of file diff --git a/charts/apps/authelia/values.yaml b/charts/apps/authelia/values.yaml index e2b2c0b..4488b0c 100644 --- a/charts/apps/authelia/values.yaml +++ b/charts/apps/authelia/values.yaml @@ -10,6 +10,8 @@ authelia: enableAdminUI: true redis: image: redis:7 + pg: + image: postgres:17.4 configuration: theme: 'dark' authentication_backend: diff --git a/flake.nix b/flake.nix index bec12a2..ccfdeb3 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,7 @@ argocd yq jq + authelia ]; shellHook = '' echo "$(pwd)" diff --git a/tf-modules.tf b/tf-modules.tf index 4569f9d..750df10 100644 --- a/tf-modules.tf +++ b/tf-modules.tf @@ -103,6 +103,18 @@ module "k8s-helm-charts" { } }) ] + }, + "nfs-subdir-external-provisioner" : { + repository = "https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/" + version = "4.0.18" + values = [ + yamlencode({ + storageClass : { + name = var.globals.nfs.storageClassName + } + nfs : var.globals.nfs.storageProvider + }) + ] } } } diff --git a/tf-provider.tf b/tf-provider.tf index 9a87cdd..0bc99ce 100644 --- a/tf-provider.tf +++ b/tf-provider.tf @@ -24,6 +24,10 @@ terraform { source = "cloudflare/cloudflare" version = "5.2.0" } + random = { + source = "hashicorp/random" + version = "3.7.2" + } } } @@ -39,3 +43,4 @@ provider "http" {} provider "cloudflare" { api_token = var.cloudflare.api_token } +provider "random" {} diff --git a/tf-variables.tf b/tf-variables.tf index 13686d5..d5b8cf4 100644 --- a/tf-variables.tf +++ b/tf-variables.tf @@ -53,9 +53,14 @@ variable "globals" { }) }) nfs = object({ - server = string - shares = object({ - k3s-cluster-pvc = string + storageClassName = string + directMounts = object({ + server = string + path = string + }) + storageProvider = object({ + server = string + path = string }) }) smtp = object({