-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
115 lines (88 loc) · 1.79 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
terraform {
required_providers {
#
# Docs: https://registry.terraform.io/providers/goauthentik/authentik/latest/docs
#
authentik = {
source = "goauthentik/authentik"
version = "2021.8.4"
}
#
# Hashicorp Consul
#
# Docs: https://registry.terraform.io/providers/hashicorp/consul/latest/docs
#
consul = {
source = "hashicorp/consul"
version = "2.13.0"
}
}
}
module "Vault" {
source = "./Vault"
}
provider "authentik" {
url = module.Vault.Authentik.URL
token = module.Vault.Authentik.Token
# Optionally set insecure to ignore TLS Certificates
# insecure = true
}
#
# Users
#
module "Users" {
source = "./Users"
}
#
# Groups
#
module "NetworkGroup" {
source = "./Groups/Network"
Users = module.Users
}
#
# Flows
#
module "BasePasswordlessFlow" {
source = "./Flows/BasePasswordless"
}
#
# Applications
#
#
# Pomerium
#
module "PomeriumApp" {
source = "./Apps/Template"
AppName = "pomeriumproxy"
AuthorizationFlow = module.BasePasswordlessFlow.Flow
VaultPath = module.Vault.Authentik.VaultPath
OpenID = {
URL = "https://auth.int.site1.kristianjones.dev"
RedirectURL = "auth.int.site1aa.kristianjones.dev/oauth2/callback"
}
Certificate = {
Certificate = module.Vault.Authentik.TLSCertificate
PrivateKey = module.Vault.Authentik.TLSKey
}
}
module "eJabberDApp" {
source = "./Apps/Template"
AppName = "ejabberd"
AuthorizationFlow = module.BasePasswordlessFlow.Flow
VaultPath = module.Vault.Authentik.VaultPath
OpenID = {
URL = "https://mq.kristianjones.dev"
RedirectURL = "https://mq.kristianjones.dev"
}
Certificate = {
Certificate = module.Vault.Authentik.TLSCertificate
PrivateKey = module.Vault.Authentik.TLSKey
}
}
#
# Hashicorp
#
#
# Hashicorp Vault
#