mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
feat: yank terraria :(
This commit is contained in:
parent
2a075ff0b1
commit
48c08f7262
1 changed files with 0 additions and 29 deletions
|
|
@ -1,30 +1 @@
|
||||||
## Terraria
|
|
||||||
|
|
||||||
resource "hcloud_server" "terraria" {
|
|
||||||
name = "terraria"
|
|
||||||
image = "ubuntu-20.04"
|
|
||||||
server_type = "cx21"
|
|
||||||
location = "nbg1"
|
|
||||||
ssh_keys = [data.hcloud_ssh_key.default.id]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "hcloud_volume" "terraria_data" {
|
|
||||||
name = "terraria-data"
|
|
||||||
size = 20
|
|
||||||
location = "nbg1"
|
|
||||||
format = "ext4"
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "hcloud_volume_attachment" "terraria_data" {
|
|
||||||
volume_id = hcloud_volume.terraria_data.id
|
|
||||||
server_id = hcloud_server.terraria.id
|
|
||||||
automount = true
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "hetznerdns_record" "terraria" {
|
|
||||||
zone_id = hetznerdns_zone.apricote_de.id
|
|
||||||
name = "terraria"
|
|
||||||
value = hcloud_server.terraria.ipv4_address
|
|
||||||
type = "A"
|
|
||||||
ttl = 60
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue