2023-12-15 11:00:37 +01:00
|
|
|
# Define required providers
|
|
|
|
terraform {
|
|
|
|
required_version = ">= 0.14.0"
|
|
|
|
required_providers {
|
|
|
|
openstack = {
|
|
|
|
source = "terraform-provider-openstack/openstack"
|
2024-03-25 16:44:38 +01:00
|
|
|
# version = "~> 1.53.0"
|
2023-12-15 11:00:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
data "terraform_remote_state" "privnet_dns_router" {
|
|
|
|
backend = "local"
|
|
|
|
|
|
|
|
config = {
|
|
|
|
path = "../project-setup/terraform.tfstate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Uses common_variables as module
|
|
|
|
#
|
|
|
|
module "common_variables" {
|
|
|
|
source = "../../modules/common_variables"
|
|
|
|
}
|
|
|
|
|
2024-03-25 16:44:38 +01:00
|
|
|
module "keycloak" {
|
|
|
|
source = "../../modules/keycloak"
|
|
|
|
keycloak_recordsets = {
|
|
|
|
keycloak_main_record = {
|
|
|
|
name = join(".", ["accounts", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]),
|
|
|
|
description = "Keycloak dev endpoint"
|
2023-12-15 11:00:37 +01:00
|
|
|
}
|
|
|
|
}
|
2024-03-18 15:19:42 +01:00
|
|
|
|
2024-03-25 16:44:38 +01:00
|
|
|
keycloak_object_store = "keycloak-data-dev"
|
2024-03-18 15:19:42 +01:00
|
|
|
}
|