-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
72 lines (63 loc) · 1.73 KB
/
variables.tf
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
60
61
62
63
64
65
66
67
68
69
70
71
72
variable "namespace" {
type = string
default = "qhcv"
}
variable "vaulturl" {
type = string
default = "http://vault.qhcv.localdev:8200"
}
variable "allowed_domains" {
type = list(string)
default = ["qhcv"]
}
variable "organisation" {
type = string
default = "qhcv"
}
variable "country" {
type = string
default = "AU"
}
variable "locality" {
type = string
default = "Melbourne"
}
variable "ou" {
type = string
default = "IDAM"
}
variable "hostnames" {
default = {
"fram" = {
"tls" : { "namespace" : "qhcv", "common_name" : "localhost", "alt_names" : ["localhost", "fram", "*.qhcv.localhost", "*.qhcv.localdev"] }
},
"frim" = {
"tls" : { "namespace" : "qhcv", "common_name" : "localhost", "alt_names" : ["localhost", "frim", "*.qhcv.localhost", "*.qhcv.localdev"] }
"selfservice" : { "common_name" : "selfservice" }
},
"frig" = {
"tls" : { "namespace" : "qhcv", "common_name" : "localhost", "alt_names" : ["localhost", "frig", "*.qhcv.localhost", "*.qhcv.localdev"] }
},
"frds" = {
"tls" : { "namespace" : "qhcv", "common_name" : "localhost", "alt_names" : ["localhost", "frdsamconfig", "frdsuser", "frdsamcts", "frdsidm", "*.qhcv.localhost", "*.qhcv.localdev"] }
}
}
}
locals {
helper_list = flatten([for service, value in var.hostnames :
flatten([for certificate, config in value :
{
"service" = service,
"certificate" = certificate,
"config" = config
}
])
])
}
locals {
clients = {
"openidm-admin" = { "provider" : "frim", "password" : "" }
"frig" = { "provider" : "frig", password : "changeit" }
"cticookie" = { "provider" : "frig", password : "changeit" }
}
}