add miner_count and missing rinkeby empty config
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
8fc5149369
commit
01285dfdb9
10
main.tf
10
main.tf
|
@ -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 = [
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue