mirror of
https://github.com/status-im/infra-swarm.git
synced 2025-02-21 11:58:14 +00:00
change name of hosts, fix size of droplet
This commit is contained in:
parent
52ececd0f1
commit
dae22ad43d
20
main.tf
20
main.tf
@ -41,18 +41,20 @@ locals {
|
||||
/* RESOURCES --------------------------------------*/
|
||||
|
||||
module "swarm" {
|
||||
source = "modules/multi-provider"
|
||||
source = "modules/multi-provider"
|
||||
/* node type */
|
||||
name = "swarm"
|
||||
group = "swarm"
|
||||
name = "node"
|
||||
group = "swarm"
|
||||
/* scaling options */
|
||||
count = "${local.ws["hosts_count"]}"
|
||||
count = "${local.ws["hosts_count"]}"
|
||||
do_size = "s-1vcpu-2gb"
|
||||
/* general */
|
||||
env = "${var.env}"
|
||||
domain = "${var.domain}"
|
||||
eth_network = "${var.eth_network}"
|
||||
env = "${var.env}"
|
||||
domain = "${var.domain}"
|
||||
eth_network = "${var.eth_network}"
|
||||
/* firewall */
|
||||
open_ports = [
|
||||
"30404-30410", /* discovery */
|
||||
open_ports = [
|
||||
"30303-30303", /* geth */
|
||||
"30399-30399", /* swarm */
|
||||
]
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ variable nodes_per_host {
|
||||
variable size {
|
||||
description = "Size of the hosts to deploy."
|
||||
# cmd: doctl compute size list
|
||||
default = "s-1vcpu-1gb"
|
||||
default = "s-1vcpu-2gb"
|
||||
}
|
||||
|
||||
variable region {
|
||||
|
@ -15,7 +15,7 @@ variable ssh_keys {
|
||||
|
||||
variable env {
|
||||
description = "Environment for these hosts, affects DNS entries."
|
||||
default = "eth"
|
||||
default = "swarm"
|
||||
}
|
||||
|
||||
variable domain {
|
||||
|
Loading…
x
Reference in New Issue
Block a user