-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tf
More file actions
59 lines (50 loc) · 1.38 KB
/
main.tf
File metadata and controls
59 lines (50 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ==================================
# Terraform & Provider configuration
# ==================================
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
version = "~> 0.119.0"
}
null = {
source = "hashicorp/null"
version = "~> 3.2.2"
}
keycloak = {
source = "keycloak/keycloak"
version = ">= 5.0.0"
}
}
}
# ==================================
# Call keycloak-config module
# ==================================
module "keycloak-config" {
source = "../../keycloak-config"
# ================================
# Input variables
# ================================
labels = { tag = "keycloak-config" }
# ================================
# Organization variables
# ================================
org_id = ""
fed_name = "kc"
# ================================
# Keycloak variables
# ================================
kc_fqdn = ""
kc_port = ""
kc_adm_user = ""
kc_adm_pass = ""
kc_realm_name = "kc"
kc_realm_descr = "My Keycloak Realm"
# ================================
# Users configuration
# ================================
users = jsondecode(file("users.json")) # replace jsondecode to yamldecode for yaml
}
output "console-url" {
value = module.keycloak-config.console-url
}