Use the hostname for the unraid server rather than the IP
This commit is contained in:
@@ -34,7 +34,7 @@ resource "nomad_csi_volume_registration" "unraid_database_dump" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
source = "//192.168.1.192/database-dump"
|
source = "//betelgeuse-seven-unraid.lan/database-dump"
|
||||||
}
|
}
|
||||||
|
|
||||||
secrets = {
|
secrets = {
|
||||||
|
|||||||
@@ -198,15 +198,15 @@ http:
|
|||||||
unraid:
|
unraid:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: "http://192.168.1.192:80"
|
- url: "http://betelgeuse-seven-unraid.lan:80"
|
||||||
frigate:
|
frigate:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: "http://192.168.1.192:5000"
|
- url: "http://betelgeuse-seven-unraid.lan:5000"
|
||||||
kopia:
|
kopia:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: "http://192.168.1.192:51515"
|
- url: "http://betelgeuse-seven-unraid.lan:51515"
|
||||||
hass:
|
hass:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_traefik" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
source = "//192.168.1.192/appdata"
|
source = "//betelgeuse-seven-unraid.lan/appdata"
|
||||||
subDir = "traefik" # Note: Needs to be manually created on the share
|
subDir = "traefik" # Note: Needs to be manually created on the share
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_gitea" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
source = "//192.168.1.192/appdata"
|
source = "//betelgeuse-seven-unraid.lan/appdata"
|
||||||
subDir = "gitea" # Note: Needs to be manually created on the share
|
subDir = "gitea" # Note: Needs to be manually created on the share
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_immich" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
source = "//192.168.1.192/appdata"
|
source = "//betelgeuse-seven-unraid.lan/appdata"
|
||||||
subDir = "immich" # Note: Needs to be manually created on the share
|
subDir = "immich" # Note: Needs to be manually created on the share
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ resource "nomad_csi_volume_registration" "unraid_media_photosvideos" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context = {
|
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
|
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 = {
|
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
|
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 = {
|
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
|
subDir = "Photos and Videos" # Note: Needs to be manually created on the share
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Terraform State
|
# Terraform State
|
||||||
|
|
||||||
Mount the state on the fileshare to 2-nomad-config/.tfstate/
|
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
|
# Tailscale Oauth Client
|
||||||
|
|
||||||
@@ -20,6 +20,7 @@ Edit the secrets using `sops secrets/secrets.enc.json`
|
|||||||
# Bootstrapping (starting without PostgreSQL running)
|
# Bootstrapping (starting without PostgreSQL running)
|
||||||
|
|
||||||
terraform apply -target=module.data
|
terraform apply -target=module.data
|
||||||
|
terraform apply -target=module.ingress
|
||||||
|
|
||||||
## Restoring PostgreSQL DBs
|
## Restoring PostgreSQL DBs
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ resource "nomad_csi_volume_registration" "unraid_transfer" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
source = "//192.168.1.192/transfer"
|
source = "//betelgeuse-seven-unraid.lan/transfer"
|
||||||
}
|
}
|
||||||
|
|
||||||
secrets = {
|
secrets = {
|
||||||
@@ -43,7 +43,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_transferfilebrowser" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
source = "//192.168.1.192/appdata"
|
source = "//betelgeuse-seven-unraid.lan/appdata"
|
||||||
subDir = "transferfilebrowser" # Note: Needs to be manually created on the share
|
subDir = "transferfilebrowser" # Note: Needs to be manually created on the share
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ resource "nomad_csi_volume_registration" "unraid_appdata_unifi_network" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context = {
|
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
|
subDir = "unifi-network" # Note: Needs to be manually created on the share
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user