generated from ethpandaops/template-devnets
-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.tf
103 lines (97 loc) · 2.75 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
////////////////////////////////////////////////////////////////////////////////////////
// TERRAFORM PROVIDERS & BACKEND
////////////////////////////////////////////////////////////////////////////////////////
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.28"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
}
hcloud = {
source = "hetznercloud/hcloud"
version = "~> 1.42.1"
}
}
}
terraform {
backend "s3" {
skip_credentials_validation = true
skip_metadata_api_check = true
endpoints = { s3 = "https://fra1.digitaloceanspaces.com" }
skip_requesting_account_id = true
skip_s3_checksum = true
region = "us-east-1"
bucket = "merge-testnets"
key = "infrastructure/pectra-devnet-2/terraform.tfstate"
}
}
provider "digitalocean" {
http_retry_max = 20
}
provider "cloudflare" {
api_token = var.cloudflare_api_token
}
////////////////////////////////////////////////////////////////////////////////////////
// VARIABLES
////////////////////////////////////////////////////////////////////////////////////////
variable "cloudflare_api_token" {
type = string
sensitive = true
description = "Cloudflare API Token"
}
variable "ethereum_network" {
type = string
default = "pectra-devnet-2"
}
variable "base_cidr_block" {
default = "10.80.0.0/16"
}
////////////////////////////////////////////////////////////////////////////////////////
// LOCALS
////////////////////////////////////////////////////////////////////////////////////////
locals {
vm_groups = [
var.mev_relay,
var.bootnode,
var.lighthouse_geth,
var.lighthouse_nethermind,
var.lighthouse_erigon,
var.lighthouse_besu,
var.lighthouse_ethereumjs,
var.lighthouse_reth,
var.prysm_geth,
var.prysm_nethermind,
var.prysm_erigon,
var.prysm_besu,
var.prysm_ethereumjs,
var.prysm_reth,
var.lodestar_geth,
var.lodestar_nethermind,
var.lodestar_erigon,
var.lodestar_besu,
var.lodestar_ethereumjs,
var.lodestar_reth,
var.nimbus_geth,
var.nimbus_nethermind,
var.nimbus_erigon,
var.nimbus_besu,
var.nimbus_ethereumjs,
var.nimbus_reth,
var.teku_geth,
var.teku_nethermind,
var.teku_erigon,
var.teku_besu,
var.teku_ethereumjs,
var.teku_reth,
var.grandine_geth,
var.grandine_nethermind,
var.grandine_erigon,
var.grandine_besu,
var.grandine_ethereumjs,
var.grandine_reth,
]
}