generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.tf
66 lines (52 loc) · 1.58 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
provider "helm" {
kubernetes {
config_path = var.kubeconfig_local_path
}
}
provider "kubernetes" {
config_path = var.kubeconfig_local_path
}
module "metallb" {
count = var.enable_metallb ? 1 : 0
source = "./modules/metallb"
ssh_config = local.ssh_config
addon_config = var.metallb_config
addon_context = local.addon_context
}
module "longhorn" {
count = var.enable_longhorn ? 1 : 0
source = "./modules/longhorn"
longhorn_config = var.longhorn_config
}
module "rook" {
count = var.enable_rook ? 1 : 0
source = "./modules/rook"
rook_config = var.rook_config
}
module "cloud_provider_equinix_metal" {
count = var.enable_cloud_provider_equinix_metal ? 1 : 0
source = "./modules/cloud_provider_equinix_metal"
ssh_config = local.ssh_config
addon_config = var.cloud_provider_equinix_metal_config
addon_context = local.addon_context
}
module "portworx" {
count = var.enable_portworx ? 1 : 0
source = "./modules/portworx"
addon_context = local.addon_context
portworx_config = var.portworx_config
}
module "portworx_data_services" {
depends_on = [module.portworx]
count = var.enable_portworx_data_services ? 1 : 0
source = "./modules/portworx-data-services"
addon_context = local.addon_context
portworx_data_services_config = var.portworx_data_services_config
}
module "kube_vip" {
depends_on = [module.cloud_provider_equinix_metal]
count = var.enable_kube_vip ? 1 : 0
source = "./modules/kube-vip"
addon_context = local.addon_context
kube_vip_config = var.kube_vip_config
}