Refacto and add modules

This commit is contained in:
2024-02-06 11:03:20 +01:00
parent 140321f714
commit 1e1cedcaeb
47 changed files with 685 additions and 360 deletions

View File

@@ -1,4 +1,4 @@
output "provider-id" {
output "provider_id" {
value = authentik_provider_oauth2.oauth2.id
}
@@ -18,17 +18,17 @@ output "sso_token_url" {
value = "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/token/"
}
output "client_id" {
value = data.kubernetes_secret_v1.oauth2-client-id.data["client-id"]
value = data.kubernetes_secret_v1.oauth2_client_id.data["client-id"]
}
output "client_secret" {
value = data.kubernetes_secret_v1.oauth2-client-secret.data["client-secret"]
value = data.kubernetes_secret_v1.oauth2_client_secret.data["client-secret"]
}
output "secret_client_id_name" {
value = kubectl_manifest.oauth2-secret.name
value = kubectl_manifest.oauth2_secret.name
}
output "secret_client_secret_name" {
value = kubernetes_secret_v1.oauth2-client-secret.metadata[0].name
value = kubernetes_secret_v1.oauth2_client_secret.metadata[0].name
}
output "secret_client_id_key" {
value = "client-id"