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 --------------------------------------*/
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 */
]
}

View File

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

View File

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