-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tf
72 lines (58 loc) · 1.75 KB
/
main.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
# ====================
# Call usersgen module
# ====================
module "usersgen" {
source = "../../usersgen"
users_list = "${abspath(path.module)}/users.yml"
# User only
template_file = "user.tpl"
# User + Cloud + Folder
# template_file = "user-cloud-folder.tpl"
# User + Cloud + Folder + VPC + Egress gateway + Route table
# template_file = "user-cloud-folder-vpc-gw-rt.tpl"
# User + Gitlab
# template_file = "user-gitlab.tpl"
# User + Gitlab + Cloud + Folder
# template_file = "user-gitlab-cloud-folder.tpl"
}
# ===========================
# Call zitadel-config module
# ===========================
module "zitadel-config" {
source = "../../zitadel-config"
system = {
base_url = var.ZITA_BASE_URL
jwt_key = var.JWT_KEY
zt_token = var.ZT_TOKEN
yc_token = var.YC_TOKEN
}
zitadel_org = {
org_name = "MyOrg"
manager_uname = "userman"
manager_pass = "Fjdsdo5#7ggjdkjglpD"
manager_fname = "Users"
manager_lname = "Manager"
manager_lang = "en"
manager_email = "[email protected]"
manager_role = "ORG_USER_MANAGER"
project_name = "yc-users"
saml_app_name = "yc-federation-saml"
yc_org_id = "bpfljqv8z325tbjhusm"
yc_fed_name = "zitadel-federation"
yc_fed_descr = "YC and Zitadel integration"
}
# STMP is disabled by default, configure enabled = true if required
zitadel_smtp = {
enabled = false
sender_address = "[email protected]"
reply_address = "[email protected]"
sender_name = "no-reply"
tls = true
host = "smtp.my-domain.net:25"
user = "smtp-sender"
password = "sm27ComplEx38passWord"
}
}
output "yc_federation_url" {
value = module.zitadel-config.yc_federation_url
}