47 lines
1.0 KiB
HCL
47 lines
1.0 KiB
HCL
variable "authentik_url" {
|
|
description = "Public Authentik URL. Defaults from homelab.yml through Jeannie."
|
|
type = string
|
|
default = ""
|
|
|
|
validation {
|
|
condition = can(regex("^https://", var.authentik_url))
|
|
error_message = "authentik_url must be an HTTPS URL."
|
|
}
|
|
}
|
|
|
|
variable "authentik_token" {
|
|
description = "Scoped Authentik API token, normally supplied as AUTHENTIK_TOKEN."
|
|
type = string
|
|
sensitive = true
|
|
default = ""
|
|
|
|
validation {
|
|
condition = length(var.authentik_token) > 0
|
|
error_message = "Set AUTHENTIK_TOKEN to a scoped Authentik API token."
|
|
}
|
|
}
|
|
|
|
variable "kubeconfig_path" {
|
|
type = string
|
|
}
|
|
|
|
variable "grafana_public_url" {
|
|
type = string
|
|
default = ""
|
|
|
|
validation {
|
|
condition = can(regex("^https://", var.grafana_public_url))
|
|
error_message = "grafana_public_url must be an HTTPS URL."
|
|
}
|
|
}
|
|
|
|
variable "grafana_namespace" {
|
|
type = string
|
|
default = "monitoring"
|
|
}
|
|
|
|
variable "grafana_secret_name" {
|
|
type = string
|
|
default = "grafana-authentik-oauth"
|
|
}
|