forked from mathianasj/proxmox-ocp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclusters.tf
More file actions
58 lines (49 loc) · 2.04 KB
/
Copy pathclusters.tf
File metadata and controls
58 lines (49 loc) · 2.04 KB
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
module "cluster" {
for_each = var.clusters
source = "./cluster"
enable_gitops = each.value.enable_gitops
enable_gitops_config = each.value.enable_gitops_config
aws_cred = each.value.aws_cred
aws_vault = each.value.aws_vault
cluster_config_repo_url = each.value.cluster_config_repo_url
repo_password = each.value.repo_password
repo_url = each.value.repo_url
repo_username = each.value.repo_username
base_domain = each.value.base_domain
public_network = each.value.public_network
api_vip = each.value.api_vip
ingress_vip = each.value.ingress_vip
cluster_name = each.key
release_type = each.value.release_type
bmc_private_key = tls_private_key.bmc.private_key_openssh
bmc_ip = split("/", var.bmc_ip)[0]
cloudinit_storage = each.value.cloudinit_storage_type
dns_server = each.value.dns_server
public_gateway = each.value.public_gateway
bmc_user = var.bmc_user
bmc_pass = var.bmc_pass
proxmox_addr = var.proxmox_addr
proxmox_user = var.proxmox_user
proxmox_token_name = var.proxmox_token_name
proxmox_token_value = var.proxmox_token_value
pull_secret = var.pull_secret
bootstrap = {
enable = true,
target_node = each.value.bootstrap.target_node,
ram = "22528",
cores = "6",
ip_cidr = each.value.bootstrap.ip_cidr,
host_cidr = each.value.bootstrap.host_cidr,
provisioner_bridge = each.value.bootstrap.prov_bridge,
public_bridge = each.value.bootstrap.public_bridge,
provisioner_vlan = each.value.bootstrap.prov_vlan,
public_vlan = each.value.bootstrap.pub_vlan,
storage = each.value.bootstrap.storage
}
master = each.value.master
worker = each.value.worker
bmc_id = proxmox_lxc.bmc.id
bmc_ansible_init_complete = null_resource.bmc_ansible_init.id
provisioner_template = null_resource.fedora35_template_import.triggers.template
# provisioner_template = "fedora35-template"
}