This repository has been archived by the owner on Jan 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
263 lines (195 loc) · 4.55 KB
/
variables.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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# Cloud resources configuration
variable "name" {
type = string
default = "bitcoin-abc"
description = <<-DESCRIPTION
Name of service.
Used as name prefix when generating hostnames.
DESCRIPTION
}
variable "servers" {
type = number
default = 1
description = <<-DESCRIPTION
Count of servers to create.
DESCRIPTION
}
variable "random_id" {
type = bool
default = true
description = <<-DESCRIPTION
Appends random id to droplet's name if `true`.
DESCRIPTION
}
variable "domain" {
type = string
default = ""
description = <<-DESCRIPTION
Domain name.
Host will be registered in this domain if non-empty value assigned.
DESCRIPTION
}
variable "domain_ttl" {
type = number
default = 300
description = <<-DESCRIPTION
TTL in seconds for domain records.
DESCRIPTION
}
variable "region" {
type = string
description = <<-DESCRIPTION
Required.
DigitalOcean region for droplet creation.
DESCRIPTION
}
variable "ssh_keys" {
type = list
default = []
description = <<-DESCRIPTION
List of SSH keys registered in DigitalOcean.
User `root` authorized with this keys.
DESCRIPTION
}
variable "tags" {
type = list
default = []
description = <<-DESCRIPTION
List of existing tags for droplet.
DESCRIPTION
}
variable "size" {
type = string
default = "s-2vcpu-4gb"
description = <<-DESCRIPTION
Size of droplet.
DESCRIPTION
}
variable "backups" {
type = bool
default = false
description = <<-DESCRIPTION
Enable backups feature for droplet.
DESCRIPTION
}
variable "ipv6" {
type = bool
default = false
description = <<-DESCRIPTION
Enable IPv6 address on droplet.
DESCRIPTION
}
variable "private_networking" {
type = bool
default = true
description = <<-DESCRIPTION
Enable DigitalOcean private networking.
DESCRIPTION
}
variable "monitoring" {
type = bool
default = true
description = <<-DESCRIPTION
Enable DigitalOcean monitoring.
DESCRIPTION
}
variable "volume_size" {
type = number
default = 100
description = <<-DESCRIPTION
Size of data volume in gigabytes.
If zero, no volume will be created.
DESCRIPTION
}
variable "trusted_sources" {
type = list
description = <<-DESCRIPTION
Required.
IP list to allow SSH and bitcoin rpc connections from.
DESCRIPTION
}
# Provisioner confiuration
variable "provisioner_username" {
type = string
default = "provisioner"
description = <<-DESCRIPTION
This user will be added and used inside this module only.
DESCRIPTION
}
# Service configuration
variable "image" {
type = string
default = "4ops/bitcoin-abc:v0.20.3"
description = <<-DESCRIPTION
Bitcoin ABC docker image tag.
DESCRIPTION
}
variable "testnet" {
type = bool
default = true
description = <<-DESCRIPTION
Use test network or main if `false`.
DESCRIPTION
}
variable "rpc_user" {
type = string
default = "bitcoin-client"
description = <<-DESCRIPTION
Username for JSON-RPC connections.
DESCRIPTION
}
variable "rpc_password" {
type = string
default = ""
description = <<-DESCRIPTION
Password for JSON-RPC connections.
If empty, random password will be generated.
DESCRIPTION
}
variable "extra_args" {
type = list
default = []
description = <<-DESCRIPTION
Bitcoin extra arguments.
DESCRIPTION
}
variable "prune" {
type = number
default = 0
description = <<-DESCRIPTION
Reduce storage requirements by enabling pruning (deleting) of old blocks.
This allows the pruneblockchain RPC to be called to delete specific blocks,
and enables automatic pruning of old blocks if a target size in MiB is provided.
This mode is incompatible with -txindex and -rescan.
Warning: Reverting this setting requires re-downloading the entire blockchain.
0 = disable pruning blocks
1 = allow manual pruning via RPC
>550 = automatically prune block files to stay under the specified target size in MiB
Default: 0
DESCRIPTION
}
variable "txindex" {
type = bool
default = false
description = <<-DESCRIPTION
Maintain a full transaction index, used by the getrawtransaction rpc call.
Default: false
DESCRIPTION
}
variable "onlynet" {
type = string
default = "ipv4"
description = <<-DESCRIPTION
Only connect to nodes in network <net> (ipv4, ipv6 or onion).
Default: ipv4
DESCRIPTION
}
# Exporter configuration
variable "bitcoin_exporter" {
type = bool
default = true
description = <<-DESCRIPTION
Installs bitcoin-exporter.
Default: true
DESCRIPTION
}