2021-12-26 01:08:03 +01:00
|
|
|
# Configure TVL Keycloak instance.
|
|
|
|
#
|
2022-09-20 11:19:54 +02:00
|
|
|
# TODO(tazjin): Configure GitLab IDP
|
2021-12-26 01:08:03 +01:00
|
|
|
|
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
keycloak = {
|
|
|
|
source = "mrparkers/keycloak"
|
|
|
|
}
|
|
|
|
}
|
2021-12-27 15:23:59 +01:00
|
|
|
|
|
|
|
backend "s3" {
|
|
|
|
endpoint = "https://objects.dc-sto1.glesys.net"
|
|
|
|
bucket = "tvl-state"
|
|
|
|
key = "terraform/tvl-keycloak"
|
|
|
|
region = "glesys"
|
|
|
|
|
|
|
|
skip_credentials_validation = true
|
|
|
|
skip_region_validation = true
|
|
|
|
skip_metadata_api_check = true
|
|
|
|
}
|
2021-12-26 01:08:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
provider "keycloak" {
|
|
|
|
client_id = "terraform"
|
|
|
|
url = "https://auth.tvl.fyi"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "keycloak_realm" "tvl" {
|
|
|
|
realm = "TVL"
|
|
|
|
enabled = true
|
|
|
|
display_name = "The Virus Lounge"
|
|
|
|
default_signature_algorithm = "RS256"
|
2022-09-20 11:21:28 +02:00
|
|
|
|
|
|
|
smtp_server {
|
|
|
|
from = "tvlbot@tazj.in"
|
|
|
|
from_display_name = "The Virus Lounge"
|
|
|
|
host = "127.0.0.1"
|
|
|
|
port = "25"
|
2022-12-25 13:05:31 +01:00
|
|
|
reply_to = "depot@tvl.su"
|
2022-09-20 11:21:28 +02:00
|
|
|
ssl = false
|
|
|
|
starttls = false
|
|
|
|
}
|
2021-12-26 01:08:03 +01:00
|
|
|
}
|