nodes.tf: rename to node.tf, and module to node
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
651188b8c5
commit
19b1507227
|
@ -1,4 +1,4 @@
|
|||
module "hosts" {
|
||||
module "node" {
|
||||
source = "github.com/status-im/infra-tf-multi-provider"
|
||||
|
||||
/* node type */
|
||||
|
@ -8,20 +8,20 @@ module "hosts" {
|
|||
domain = var.domain
|
||||
|
||||
/* scaling */
|
||||
host_count = local.ws["hosts_count"]
|
||||
host_count = local.ws["node_count"]
|
||||
|
||||
/* instance sizes */
|
||||
do_type = local.ws["do_type"] /* DigitalOcean */
|
||||
ac_type = local.ws["ac_type"] /* Alibaba Cloud */
|
||||
gc_type = local.ws["gc_type"] /* Google Cloud */
|
||||
do_type = local.ws["node_do_type"] /* DigitalOcean */
|
||||
ac_type = local.ws["node_ac_type"] /* Alibaba Cloud */
|
||||
gc_type = local.ws["node_gc_type"] /* Google Cloud */
|
||||
|
||||
/* data volumes */
|
||||
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"]
|
||||
ac_data_vol_size = local.ws["node_data_vol_size"]
|
||||
do_data_vol_size = local.ws["node_data_vol_size"]
|
||||
gc_data_vol_size = local.ws["node_data_vol_size"]
|
||||
|
||||
/* fix for volume size */
|
||||
ac_data_vol_type = local.ws["node_ac_data_vol_type"]
|
||||
|
||||
/* firewall */
|
||||
open_tcp_ports = [
|
|
@ -13,20 +13,20 @@ locals {
|
|||
env = "status"
|
||||
stage = terraform.workspace
|
||||
|
||||
/* 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 */
|
||||
/* Waku nodes */
|
||||
node_count = 1
|
||||
node_do_type = "s-1vcpu-2gb" /* DigitalOcean */
|
||||
node_ac_type = "ecs.t5-lc1m2.small" /* Alibaba Cloud */
|
||||
node_gc_type = "g1-small" /* Google Cloud */
|
||||
node_ac_data_vol_type = "cloud_ssd"
|
||||
node_data_vol_size = 40
|
||||
}
|
||||
|
||||
# Inherits defaults.
|
||||
test = { hosts_count = 1 }
|
||||
test = {}
|
||||
prod = {
|
||||
hosts_count = 2
|
||||
data_volume_size = 350
|
||||
node_count = 2
|
||||
node_data_vol_size = 350
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue