-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
80 lines (72 loc) · 3.03 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
provider "volterra" {
url = local.xc_provider_url
}
provider "kubectl" {
config_path = var.kubeconfig_file
}
provider "kubernetes" {
config_path = var.kubeconfig_file
}
module "xc-virtual-site-sentence" {
source = "./xc-virtual-site"
virtual_site_name = var.sentence_app_virtual_site
namespace = var.namespace
project_prefix = var.project_prefix
regions = var.sentence_app_region
}
module "xc-virtual-site-nginx" {
source = "./xc-virtual-site"
virtual_site_name = var.nginx_auth_virtual_site
namespace = var.namespace
project_prefix = var.project_prefix
regions = var.nginx_app_region
}
module "xc-re-vk8s" {
source = "./xc-re-vk8s"
tenant = var.tenant
namespace = var.namespace
project_prefix = var.project_prefix
sentence_app_virtual_site = module.xc-virtual-site-sentence.virtual_site_name
nginx_auth_virtual_site = module.xc-virtual-site-nginx.virtual_site_name
}
module "xc-re-vk8s-kubeconfig" {
source = "./xc-re-vk8s-kubeconfig"
namespace = var.namespace
vk8s_name = module.xc-re-vk8s.vk8s_name
kubeconfig_file = var.kubeconfig_file
depends_on = [module.xc-re-vk8s]
}
module "install-sentence-app" {
source = "./install-sentence-app"
tenant = var.tenant
tenant_suffix = var.tenant_suffix
namespace = var.namespace
project_prefix = var.project_prefix
virtual_site_name = var.sentence_app_virtual_site
nginx_auth_virtual_site = module.xc-virtual-site-nginx.virtual_site_name
kubeconfig_file = module.xc-re-vk8s-kubeconfig.kubeconfig_file
app_name = var.sentence_app_name
app_fqdn = var.sentence_app_fqdn
}
module "install-nginx-auth" {
source = "./install-nginx-auth"
tenant = var.tenant
tenant_suffix = var.tenant_suffix
namespace = var.namespace
project_prefix = var.project_prefix
virtual_site_name = var.nginx_auth_virtual_site
kubeconfig_file = module.xc-re-vk8s-kubeconfig.kubeconfig_file
app_name = var.nginx_app_name
app_fqdn = var.nginx_app_fqdn
sentence_app_fqdn = var.sentence_app_fqdn
sentence_frontend_service_name = var.sentence_frontend_service_name
sentence_frontend_service_port = var.sentence_frontend_service_port
nginx_plus_oidc_image_server = var.nginx_plus_oidc_image_server
nginx_plus_oidc_image_owner = var.nginx_plus_oidc_image_owner
nginx_plus_oidc_image_name = var.nginx_plus_oidc_image_name
nginx_plus_oidc_image_token = var.nginx_plus_oidc_image_token
azure_directory_id = var.azure_directory_id
azure_oidc_client_id = var.azure_oidc_client_id
azure_oidc_client_secret = var.azure_oidc_client_secret
azure_oidc_hmac_key = var.azure_oidc_hmac_key
}