Use the hostname for the unraid server rather than the IP

This commit is contained in:
2025-11-07 19:42:38 +11:00
parent 2803f694e8
commit 443d614a66
8 changed files with 15 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ resource "nomad_csi_volume_registration" "unraid_database_dump" {
}
context = {
source = "//192.168.1.192/database-dump"
source = "//betelgeuse-seven-unraid.lan/database-dump"
}
secrets = {

View File

@@ -198,15 +198,15 @@ http:
unraid:
loadBalancer:
servers:
- url: "http://192.168.1.192:80"
- url: "http://betelgeuse-seven-unraid.lan:80"
frigate:
loadBalancer:
servers:
- url: "http://192.168.1.192:5000"
- url: "http://betelgeuse-seven-unraid.lan:5000"
kopia:
loadBalancer:
servers:
- url: "http://192.168.1.192:51515"
- url: "http://betelgeuse-seven-unraid.lan:51515"
hass:
loadBalancer:
servers:

View File

@@ -48,7 +48,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_traefik" {
}
context = {
source = "//192.168.1.192/appdata"
source = "//betelgeuse-seven-unraid.lan/appdata"
subDir = "traefik" # Note: Needs to be manually created on the share
}

View File

@@ -49,7 +49,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_gitea" {
}
context = {
source = "//192.168.1.192/appdata"
source = "//betelgeuse-seven-unraid.lan/appdata"
subDir = "gitea" # Note: Needs to be manually created on the share
}

View File

@@ -50,7 +50,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_immich" {
}
context = {
source = "//192.168.1.192/appdata"
source = "//betelgeuse-seven-unraid.lan/appdata"
subDir = "immich" # Note: Needs to be manually created on the share
}
@@ -76,7 +76,7 @@ resource "nomad_csi_volume_registration" "unraid_media_photosvideos" {
}
context = {
source = "//192.168.1.192/media"
source = "//betelgeuse-seven-unraid.lan/media"
subDir = "Photos and Videos" # Note: Needs to be manually created on the share
}
@@ -102,7 +102,7 @@ resource "nomad_csi_volume_registration" "unraid_media_immich_encodedvideo" {
}
context = {
source = "//192.168.1.192/media"
source = "//betelgeuse-seven-unraid.lan/media"
subDir = "immich/encoded-video" # Note: Needs to be manually created on the share
}
@@ -128,7 +128,7 @@ resource "nomad_csi_volume_registration" "unraid_mediadump_photosvideos" {
}
context = {
source = "//192.168.1.192/media-dump"
source = "//betelgeuse-seven-unraid.lan/media-dump"
subDir = "Photos and Videos" # Note: Needs to be manually created on the share
}

View File

@@ -1,7 +1,7 @@
# Terraform State
Mount the state on the fileshare to 2-nomad-config/.tfstate/
`sudo mount -t cifs //192.168.1.192/appdata/terraform /home/othrayte/Code/infra/2-nomad-config/.tfstate/ -o rw,username=othrayte,password=<pw>,uid=$(id -u),gid=$(id -g)`
`sudo mount -t cifs //betelgeuse-seven-unraid.lan/appdata/terraform /home/othrayte/Code/infra/2-nomad-config/.tfstate/ -o rw,username=othrayte,password=<pw>,uid=$(id -u),gid=$(id -g)`
# Tailscale Oauth Client
@@ -20,6 +20,7 @@ Edit the secrets using `sops secrets/secrets.enc.json`
# Bootstrapping (starting without PostgreSQL running)
terraform apply -target=module.data
terraform apply -target=module.ingress
## Restoring PostgreSQL DBs

View File

@@ -18,7 +18,7 @@ resource "nomad_csi_volume_registration" "unraid_transfer" {
}
context = {
source = "//192.168.1.192/transfer"
source = "//betelgeuse-seven-unraid.lan/transfer"
}
secrets = {
@@ -43,7 +43,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_transferfilebrowser" {
}
context = {
source = "//192.168.1.192/appdata"
source = "//betelgeuse-seven-unraid.lan/appdata"
subDir = "transferfilebrowser" # Note: Needs to be manually created on the share
}

View File

@@ -20,7 +20,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_unifi_network" {
}
context = {
source = "//192.168.1.192/appdata"
source = "//betelgeuse-seven-unraid.lan/appdata"
subDir = "unifi-network" # Note: Needs to be manually created on the share
}