diff --git a/2-nomad-config/1-data/postgres.tf b/2-nomad-config/1-data/postgres.tf index 862280b..d5f46c8 100644 --- a/2-nomad-config/1-data/postgres.tf +++ b/2-nomad-config/1-data/postgres.tf @@ -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 = { diff --git a/2-nomad-config/2-ingress/traefik.nomad.hcl b/2-nomad-config/2-ingress/traefik.nomad.hcl index 7de46a1..4d5f7b4 100644 --- a/2-nomad-config/2-ingress/traefik.nomad.hcl +++ b/2-nomad-config/2-ingress/traefik.nomad.hcl @@ -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: diff --git a/2-nomad-config/2-ingress/traefik.tf b/2-nomad-config/2-ingress/traefik.tf index 9904a06..6c9d4cd 100644 --- a/2-nomad-config/2-ingress/traefik.tf +++ b/2-nomad-config/2-ingress/traefik.tf @@ -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 } diff --git a/2-nomad-config/gitea.tf b/2-nomad-config/gitea.tf index b6cfb7d..8a76d7d 100644 --- a/2-nomad-config/gitea.tf +++ b/2-nomad-config/gitea.tf @@ -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 } diff --git a/2-nomad-config/immich.tf b/2-nomad-config/immich.tf index 71e8b84..96b9958 100644 --- a/2-nomad-config/immich.tf +++ b/2-nomad-config/immich.tf @@ -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 } diff --git a/2-nomad-config/readme.md b/2-nomad-config/readme.md index 6803ca6..f15a8a0 100644 --- a/2-nomad-config/readme.md +++ b/2-nomad-config/readme.md @@ -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=,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=,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 diff --git a/2-nomad-config/transfer.tf b/2-nomad-config/transfer.tf index 2e08daa..a503313 100644 --- a/2-nomad-config/transfer.tf +++ b/2-nomad-config/transfer.tf @@ -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 } diff --git a/2-nomad-config/unifi.tf b/2-nomad-config/unifi.tf index 75e8d3d..2d8e710 100644 --- a/2-nomad-config/unifi.tf +++ b/2-nomad-config/unifi.tf @@ -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 }