-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
64 lines (54 loc) · 1.08 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
variable "node_count" {
type = number
default = 1
}
variable "name" {
type = string
default = "hashicraft"
}
variable "region" {
type = string
default = "ams3"
}
variable "image" {
type = string
default = "hashicraft/minecraft:v1.16.3"
}
variable "port" {
type = number
default = 25565
}
variable "envs" {
type = map(string)
default = {
"MINECRAFT_MOTD": "HashiCraft"
"RCON_ENABLED": "true"
"RCON_PASSWORD": "password"
"WORLD_BACKUP": "https://github.com/HashiCraft/digital-ocean-tide/releases/download/v0.0.0/world.tar.gz"
"MODS_BACKUP": "https://github.com/HashiCraft/digital-ocean-tide/releases/download/v0.0.0/mods.tar.gz"
}
}
variable "volume" {
type = string
default = "minecraftdata"
}
variable "mounts" {
type = list(object({
source = string
destination = string
}))
default = [
{
source = "mods"
destination = "/minecraft/mods"
},
{
source = "world"
destination = "/minecraft/world"
},
{
source = "config"
destination = "/minecraft/config"
}
]
}