make data_volume_size a fleet-specific parameter

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-06-26 13:26:44 +02:00
parent e505c96ff1
commit 2a05b23e53
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
3 changed files with 11 additions and 10 deletions

View File

@ -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 */

View File

@ -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
}

View File

@ -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
}
}
}