mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
feat: import minecraft server
This commit is contained in:
parent
81ac0669c0
commit
68222fc63c
1 changed files with 18 additions and 0 deletions
18
gameservers.tf
Normal file
18
gameservers.tf
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
## Minecraft
|
||||
|
||||
resource "hcloud_server" "minecraft" {
|
||||
name = "minecraft"
|
||||
image = "ubuntu-20.04"
|
||||
server_type = "cx21"
|
||||
location = "nbg1"
|
||||
}
|
||||
|
||||
resource "hcloud_volume" "minecraft_data" {
|
||||
name = "minecraft-data"
|
||||
size = 20
|
||||
}
|
||||
|
||||
resource "hcloud_volume_attachment" "minecraft_data" {
|
||||
volume_id = hcloud_volume.minecraft_data.id
|
||||
server_id = hcloud_server.minecraft.id
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue