change name of hosts, fix size of droplet

This commit is contained in:
Jakub Sokołowski 2018-08-01 15:57:29 -04:00
parent 52ececd0f1
commit dae22ad43d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 13 additions and 11 deletions

20
main.tf
View File

@ -41,18 +41,20 @@ locals {
/* RESOURCES --------------------------------------*/ /* RESOURCES --------------------------------------*/
module "swarm" { module "swarm" {
source = "modules/multi-provider" source = "modules/multi-provider"
/* node type */ /* node type */
name = "swarm" name = "node"
group = "swarm" group = "swarm"
/* scaling options */ /* scaling options */
count = "${local.ws["hosts_count"]}" count = "${local.ws["hosts_count"]}"
do_size = "s-1vcpu-2gb"
/* general */ /* general */
env = "${var.env}" env = "${var.env}"
domain = "${var.domain}" domain = "${var.domain}"
eth_network = "${var.eth_network}" eth_network = "${var.eth_network}"
/* firewall */ /* firewall */
open_ports = [ open_ports = [
"30404-30410", /* discovery */ "30303-30303", /* geth */
"30399-30399", /* swarm */
] ]
} }

View File

@ -11,7 +11,7 @@ variable nodes_per_host {
variable size { variable size {
description = "Size of the hosts to deploy." description = "Size of the hosts to deploy."
# cmd: doctl compute size list # cmd: doctl compute size list
default = "s-1vcpu-1gb" default = "s-1vcpu-2gb"
} }
variable region { variable region {

View File

@ -15,7 +15,7 @@ variable ssh_keys {
variable env { variable env {
description = "Environment for these hosts, affects DNS entries." description = "Environment for these hosts, affects DNS entries."
default = "eth" default = "swarm"
} }
variable domain { variable domain {