From 485ec348d633c8e33bee33622a753f038eec8a77 Mon Sep 17 00:00:00 2001 From: Dan Ankers Date: Tue, 3 Oct 2023 22:09:06 +0100 Subject: [PATCH] Add Nautobot --- main.tf | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ vars.tf | 4 ++++ 2 files changed, 63 insertions(+) diff --git a/main.tf b/main.tf index 7882894..a6b0d99 100644 --- a/main.tf +++ b/main.tf @@ -193,3 +193,62 @@ resource "keycloak_openid_client" "gitea_client" { "https://git.${var.domain_suffix}/*" ] } + +resource "keycloak_openid_client" "nautobot_client" { + realm_id = keycloak_realm.realm.id + client_id = "nautobot" + enabled = true + access_type = "CONFIDENTIAL" + standard_flow_enabled = true + implicit_flow_enabled = true + client_secret = var.keycloak_nautobot_secret + valid_redirect_uris = [ + "/*", + "https://nautobot.k8s.md1clv.im", + "https://nautobot.k8s.md1clv.im/*" + ] +} + +resource "helm_release" "nautobot" { + name = "nautobot" + namespace = var.nautobot_namespace + repository = "https://nautobot.github.io/helm-charts/" + chart = "nautobot" + create_namespace = true + + values = [ +<