generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
55 lines (44 loc) · 1.65 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
# Setup provider block
terraform {
required_version = ">= 1.3"
}
# ---------------------------------------------------------------------------------------------------------------------
# Project Setup
# ---------------------------------------------------------------------------------------------------------------------
# Setup Project for deploying metal or EKSA
module "project_setup" {
count = var.enable_workshop_setup ? 1 : 0
source = "./modules/invite-from-csv"
metal_organization_id = var.metal_organization_id
}
# ---------------------------------------------------------------------------------------------------------------------
# Platforms
# ---------------------------------------------------------------------------------------------------------------------
# Deploy the metal module if platform of choice is Metal
module "deploy_metal" {
count = var.enable_metal ? 1 : 0
source = "./modules/metal"
module_context = local.module_context
module_config = var.metal_config
}
# Deploy the eksa module if platform of choice is EKSA
module "deploy_eksa" {
count = var.enable_eksa ? 1 : 0
source = "./modules/eksa"
module_context = local.module_context
module_config = var.eksa_config
}
# Deploy the K3s module if platform of choice is K3s
module "deploy_k3s" {
count = var.enable_k3s ? 1 : 0
source = "./modules/k3s"
module_context = local.module_context
module_config = var.k3s_config
}
# Deploy the k8s module if platform of choice is K8s
module "deploy_k8s" {
count = var.enable_k8s ? 1 : 0
source = "./modules/k8s"
module_context = local.module_context
module_config = var.k8s_config
}