add miner_count and missing rinkeby empty config

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-03-18 16:45:07 +01:00
parent 8fc5149369
commit 01285dfdb9
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 12 additions and 8 deletions

10
main.tf
View File

@ -39,11 +39,11 @@ locals {
module "faucet-master" {
source = "github.com/status-im/infra-tf-google-cloud"
count = 1
name = "master"
env = "faucet"
group = "faucet-master"
size = "n1-standard-1"
type = "n1-standard-1"
count = 1
domain = "${var.domain}"
open_ports = [
"80-80", /* HTTP */
@ -53,7 +53,7 @@ module "faucet-master" {
resource "cloudflare_record" "api" {
domain = "${var.public_domain}"
name = "${workspace}"
name = "${terraform.workspace}"
value = "${module.faucet-master.public_ips[0]}"
type = "A"
proxied = true
@ -63,11 +63,11 @@ resource "cloudflare_record" "api" {
module "faucet-miners" {
source = "github.com/status-im/infra-tf-google-cloud"
count = 1
name = "miner"
env = "faucet"
group = "faucet-miners"
size = "${local.ws["miner_instance_size"]}"
count = "${local.ws["miner_count"]}"
type = "${local.ws["miner_instance_type"]}"
vol_size = "${local.ws["miner_volume_size"]}"
domain = "${var.domain}"
open_ports = [

View File

@ -10,15 +10,19 @@
locals {
env = {
defaults = {
miner_count = 3
# By default we use 2 CPU 7.5 GB RAM instances
miner_instance_size = "n1-standard-2"
miner_instance_type = "n1-standard-2"
# 100 GBs is fine for now
miner_volume_size = 100
}
# Default settings for Rinkeby
rinkeby = {}
# Ropsten is memory intensive, 13 GB of RAM given
beta = {
miner_instance_size = "n1-highmem-2"
ropsten = {
miner_instance_type = "n1-highmem-2"
# 200 GBs should be enough for Ropsten
miner_volume_size = 200
}