forked from aitalian/terraform-proxmox-k3s-rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
41 lines (34 loc) · 1.11 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
module "custom_cluster_dev" {
source = "./modules/custom-cluster"
cluster_name = "dev"
controller_count = 1
workers_count = 1
proxmox_node = var.proxmox_node
template_name = var.template_name
proxmox_dns = var.proxmox_dns
ssh_public_key_path = var.ssh_public_key_path
ssh_private_key_path = var.ssh_private_key_path
k3s_token = var.k3s_token
configs_output_local = var.configs_output_local
preffix_vm = var.preffix_vm
}
output "dev_control_plane" {
value = module.custom_cluster_dev
}
module "custom_cluster_prod" {
source = "./modules/custom-cluster"
cluster_name = "prod"
controller_count = 1
workers_count = 1
proxmox_node = var.proxmox_node
template_name = var.template_name
proxmox_dns = var.proxmox_dns
ssh_public_key_path = var.ssh_public_key_path
ssh_private_key_path = var.ssh_private_key_path
k3s_token = var.k3s_token
configs_output_local = var.configs_output_local
preffix_vm = var.preffix_vm
}
output "dev_workers" {
value = module.custom_cluster_prod
}