-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
147 lines (115 loc) · 3.67 KB
/
variables.tf
File metadata and controls
147 lines (115 loc) · 3.67 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
variable "do_token" {
description = "DO API token"
}
variable "cloudflare_api_token" {
description = "Cloudflare API token"
default = ""
}
variable "prefix" {
description = "Name of project being deployed for naming and tagging"
default = "polygon"
}
variable "ssh_port" {
description = "sshd daemon listening port"
default = "22"
}
variable "public_key_path" {
description = <<DESCRIPTION
Path to the SSH public key to be used for authentication.
Example: ~/.ssh/terraform.pub
DESCRIPTION
default = "~/.ssh/id_rsa.pub"
}
variable "private_key_path" {
description = <<DESCRIPTION
Path to the SSH private key to be used for authentication.
Example: ~/.ssh/id_rsa
DESCRIPTION
default = "~/.ssh/id_rsa"
}
variable "root_domain" {
description = "DNS root domain lookup"
}
variable "ip_whitelist" {
description = "List of ip/cidr to be whitelisted for each droplet"
}
variable "ssh_key_1" {
description = "ssh key to add to allowed_hosts"
}
variable "ssh_key_2" {
description = "ssh key to add to allowed_hosts"
}
variable "alert_email" {
description = "Email address for DO monitor alerts"
}
variable "alert_slack_channel" {
description = "Slack channel for DO monitor alerts"
default = ""
}
variable "alert_slack_webhook" {
description = "Slack webhook URL for DO monitor alerts"
default = ""
}
variable "alert_cpu_threshold" {
description = "CPU usage perecentage threshold for DO monitor alerts"
default = 95
}
variable "node_droplet_size" {
description = "The unique slug that indentifies the type of polygon node droplet. You can find a list of available slugs on https://docs.digitalocean.com/reference/api/api-reference/#tag/Sizes"
default = "s-4vcpu-8gb-amd"
}
variable "node_droplet_region" {
description = "The region to start the polygon node droplet in"
}
variable "node_droplet_name" {
description = "The polygon node droplet name"
}
variable "node_droplet_image" {
description = "The polygon node droplet OS image"
default = "ubuntu-22-04-x64"
}
variable "node_data_volume_size" {
description = "The polygon node data volume size"
default = 500
}
variable "node_data_volume_name" {
description = "The polygon node data volume name"
default = "data"
}
variable "node_data_volume_fs_type" {
description = "The polygon data volume filesystem type (xfs or ext4) for the block storage volume"
default = "xfs"
}
variable "polygon_network_name" {
description = "Polygon node network (mainnet, mumbai, local)"
default = "mumbai"
}
variable "polygon_network_code" {
description = "Polygon node network code (mainnet-v1, testnet-v4)"
default = "testnet-v4"
}
variable "bor_mode" {
description = "Bor mode (archive, fullnode)"
default = "fullnode"
}
variable "eth_rpc_url" {
description = "RPC endpoint for ethereum chain"
default = "http://localhost:8545"
}
variable "heimdall_seeds" {
description = "Seed nodes for heimdall"
# mumbai
default = "4cd60c1d76e44b05f7dfd8bab3f447b119e87042@54.147.31.250:26656,b18bbe1f3d8576f4b73d9b18976e71c65e839149@34.226.134.117:26656"
# mainnet
#default = "f4f605d60b8ffaaf15240564e58a81103510631c@159.203.9.164:26656,4fb1bc820088764a564d4f66bba1963d47d82329@44.232.55.71:26656"
}
variable "bor_bootnodes" {
description = "Bor bootnodes"
default = "enode://095c4465fe509bd7107bbf421aea0d3ad4d4bfc3ff8f9fdc86f4f950892ae3bbc3e5c715343c4cf60c1c06e088e621d6f1b43ab9130ae56c2cacfd356a284ee4@18.213.200.99:30303"
}
variable "caddy_user" {
description = "Username used for basic auth for publically exposed endpoints"
}
variable "caddy_password" {
description = "Password used for basic auth for publically exposed endpoints"
}