forked from maidsafe/sn_testnet_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.tf
101 lines (83 loc) · 1.7 KB
/
provider.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
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
backend "s3" {
bucket = "maidsafe-org-infra-tfstate"
key = "testnet_tool_terraform.tfstate"
region = "eu-west-2"
}
}
variable "do_token" {}
variable "pvt_key" {}
variable "number_of_nodes" {
default = "5"
}
variable "testnet_channel" {
default = "public"
}
variable "remote_log_level" {
default = "-vvvv"
}
variable "port" {
type = number
default = 12000
}
variable "ssh_keys" {
type = list(number)
default = [
37243057, # Benno Zeeman
36983288, # David Rusu
36971807, # Roland Sherwin
36971688, # Dirvine
19315097, # Stephen Coyle
29201567, # Josh Wilson
29586082, # Gabriel Viganotti
29690776, # Edward Holst
30643816, # Anselme Grumbach
30113222, # Qi Ma
30878672, # Chris O'Neil
31216015, # QA
34183228, # GH Actions Automation
]
}
variable "region" {
default = "lon1"
}
# droplet size and config, NOT node related
variable "build-size" {
# default = "s-1vcpu-1gb"
# default = "s-4vcpu-8gb"
# default = "s-8vcpu-16gb"
default = "c-16"
}
variable "node-size" {
default = "s-2vcpu-2gb"
}
variable "client-size" {
default = "s-4vcpu-8gb" # bigger for faster builds
}
provider "digitalocean" {
token = var.do_token
}
variable "builder_count" {
default = "0"
}
variable "repo_owner" {
default = "maidsafe"
}
variable "commit_hash" {
default = "."
}
variable "client_count" {
default = "1"
}
variable "node_url" {
default = "https://sn-node.s3.eu-west-2.amazonaws.com/sn_node-latest-x86_64-unknown-linux-musl.tar.gz"
}
variable "otlp_collector_endpoint" {
default = ""
}