-
Notifications
You must be signed in to change notification settings - Fork 0
/
storage.tf
40 lines (31 loc) · 1.19 KB
/
storage.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
module "storage" {
source = "./modules/node-group"
cluster_id = var.cluster_id
cluster_domain = local.cluster_domain
role = "storage"
node_count = var.storage_count
region = var.region
template_id = data.exoscale_template.rhcos.id
base_domain = var.base_domain
instance_type = var.storage_type
node_state = var.storage_state
ssh_key_pair = local.ssh_key_name
root_disk_size = var.root_disk_size
// We never configure a data disk for storage cluster nodes
// Instead, we keep the `storage_disk_size` special case to provision
// dedicated storage cluster nodes for now.
storage_disk_size = var.storage_cluster_disk_size
use_privnet = var.use_privnet
privnet_id = local.privnet_id
privnet_gw = local.privnet_gw
api_int = exoscale_domain_record.api_int.hostname
ignition_ca = var.ignition_ca
security_group_ids = [
exoscale_security_group.all_machines.id,
exoscale_security_group.storage.id,
]
affinity_group_capacity = var.affinity_group_capacity
additional_affinity_group_ids = var.additional_affinity_group_ids
deploy_target_id = var.deploy_target_id
bootstrap_bucket = var.bootstrap_bucket
}