feat: import minecraft server

This commit is contained in:
Julian Tölle 2022-03-30 18:05:22 +02:00
parent 81ac0669c0
commit 68222fc63c

18
gameservers.tf Normal file
View 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
}