make data_volume_size a fleet-specific parameter
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e505c96ff1
commit
2a05b23e53
8
nodes.tf
8
nodes.tf
|
@ -16,9 +16,11 @@ module "hosts" {
|
|||
gc_type = local.ws["gc_type"] /* Google Cloud */
|
||||
|
||||
/* data volumes */
|
||||
ac_data_vol_size = var.data_volume_size
|
||||
do_data_vol_size = var.data_volume_size
|
||||
gc_data_vol_size = var.data_volume_size
|
||||
ac_data_vol_size = local.ws["data_volume_size"]
|
||||
do_data_vol_size = local.ws["data_volume_size"]
|
||||
gc_data_vol_size = local.ws["data_volume_size"]
|
||||
/* fix for volume size */
|
||||
ac_data_vol_type = local.ws["ac_data_volume_type"]
|
||||
|
||||
|
||||
/* firewall */
|
||||
|
|
|
@ -3,9 +3,3 @@ variable "domain" {
|
|||
type = string
|
||||
default = "statusim.net"
|
||||
}
|
||||
|
||||
variable "data_volume_size" {
|
||||
description = "Size of extra data volumes for nodes in GB"
|
||||
type = number
|
||||
default = 60
|
||||
}
|
||||
|
|
|
@ -15,6 +15,8 @@ locals {
|
|||
|
||||
/* scaling */
|
||||
hosts_count = 1
|
||||
data_volume_size = 40
|
||||
ac_data_volume_type = "cloud_ssd"
|
||||
do_type = "s-1vcpu-2gb" /* DigitalOcean */
|
||||
ac_type = "ecs.t5-lc1m2.small" /* Alibaba Cloud */
|
||||
gc_type = "g1-small" /* Google Cloud */
|
||||
|
@ -22,7 +24,10 @@ locals {
|
|||
|
||||
# Inherits defaults.
|
||||
test = { hosts_count = 1 }
|
||||
prod = { hosts_count = 2 }
|
||||
prod = {
|
||||
hosts_count = 2
|
||||
data_volume_size = 60
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue