🔧 LOCAL_LAN_TRUENAS variable

This commit is contained in:
auricom
2024-01-25 14:19:53 +01:00
parent 5cca1f4780
commit 9f0ed4d099
26 changed files with 48 additions and 49 deletions

View File

@@ -29,7 +29,7 @@ spec:
cp /opt/id_rsa ~/.ssh/id_rsa cp /opt/id_rsa ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
ssh -o StrictHostKeyChecking=no homelab@${LOCAL_LAN_TRUENAS} << 'EOF' ssh -o StrictHostKeyChecking=no homelab@192.168.9.10 << 'EOF'
set -o nounset set -o nounset
set -o errexit set -o errexit

View File

@@ -115,7 +115,7 @@ spec:
video: video:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/video path: /mnt/storage/video
globalMounts: globalMounts:
- path: /mnt/storage/video - path: /mnt/storage/video

View File

@@ -79,7 +79,7 @@ spec:
books: books:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/home/claude/books path: /mnt/storage/home/claude/books
globalMounts: globalMounts:
- path: /mnt/storage/home/claude/books - path: /mnt/storage/home/claude/books

View File

@@ -127,7 +127,7 @@ spec:
readOnly: true readOnly: true
media: media:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/apps/frigate path: /mnt/storage/apps/frigate
globalMounts: globalMounts:
- path: /media/frigate - path: /media/frigate

View File

@@ -98,7 +98,7 @@ spec:
backups: backups:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/backups/postgresql path: /mnt/storage/backups/postgresql
globalMounts: globalMounts:
- path: /backups - path: /backups

View File

@@ -79,7 +79,7 @@ spec:
persistence: persistence:
library: library:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/apps/immich path: /mnt/storage/apps/immich
globalMounts: globalMounts:
- path: *mediaLocation - path: *mediaLocation

View File

@@ -94,7 +94,7 @@ spec:
persistence: persistence:
library: library:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/apps/immich path: /mnt/storage/apps/immich
globalMounts: globalMounts:
- path: /usr/src/app/upload - path: /usr/src/app/upload

View File

@@ -130,7 +130,7 @@ spec:
- path: /config - path: /config
library: library:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/apps/immich path: /mnt/storage/apps/immich
globalMounts: globalMounts:
- path: *mediaLocation - path: *mediaLocation

View File

@@ -107,14 +107,14 @@ spec:
music: music:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/music path: /mnt/storage/music
globalMounts: globalMounts:
- path: /mnt/storage/music - path: /mnt/storage/music
photo: photo:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/photo path: /mnt/storage/photo
mountPath: /mnt/storage/photo mountPath: /mnt/storage/photo
globalMounts: globalMounts:
@@ -122,7 +122,7 @@ spec:
video: video:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/video path: /mnt/storage/video
globalMounts: globalMounts:
- path: /mnt/storage/video - path: /mnt/storage/video

View File

@@ -72,7 +72,7 @@ spec:
- path: /config - path: /config
comics: comics:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/home/claude/comics path: /mnt/storage/home/claude/comics
globalMounts: globalMounts:
- path: /mnt/storage/home/claude/comics - path: /mnt/storage/home/claude/comics

View File

@@ -102,13 +102,13 @@ spec:
- path: /config - path: /config
music: music:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/music path: /mnt/storage/music
globalMounts: globalMounts:
- path: /mnt/storage/music - path: /mnt/storage/music
downloads: downloads:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/downloads path: /mnt/storage/downloads
globalMounts: globalMounts:
- path: /mnt/storage/downloads - path: /mnt/storage/downloads

View File

@@ -89,19 +89,19 @@ spec:
- path: /srv/squeezebox - path: /srv/squeezebox
music: music:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: *music path: *music
globalMounts: globalMounts:
- path: *music - path: *music
music-helene: music-helene:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/home/helene/Musique path: /mnt/storage/home/helene/Musique
globalMounts: globalMounts:
- path: /mnt/storage/home/helene/Musique - path: /mnt/storage/home/helene/Musique
playlists: playlists:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: *playlist path: *playlist
globalMounts: globalMounts:
- path: *playlist - path: *playlist

View File

@@ -91,7 +91,7 @@ spec:
photo: photo:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/photo path: /mnt/storage/photo
readOnly: true readOnly: true
globalMounts: globalMounts:

View File

@@ -98,21 +98,21 @@ spec:
music: music:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/music path: /mnt/storage/music
globalMounts: globalMounts:
- path: /mnt/storage/music - path: /mnt/storage/music
photo: photo:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/photo path: /mnt/storage/photo
globalMounts: globalMounts:
- path: /mnt/storage/photo - path: /mnt/storage/photo
video: video:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/video path: /mnt/storage/video
globalMounts: globalMounts:
- path: /mnt/storage/video - path: /mnt/storage/video

View File

@@ -78,12 +78,12 @@ spec:
music: music:
type: nfs type: nfs
path: /mnt/storage/music path: /mnt/storage/music
server: ${LOCAL_LAN_TRUENAS} server: 192.168.9.10
globalMounts: globalMounts:
- path: /mnt/music - path: /mnt/music
music-transcoded: music-transcoded:
type: nfs type: nfs
path: /mnt/storage/music_transcoded path: /mnt/storage/music_transcoded
server: ${LOCAL_LAN_TRUENAS} server: 192.168.9.10
globalMounts: globalMounts:
- path: /mnt/music_transcoded - path: /mnt/music_transcoded

View File

@@ -96,7 +96,7 @@ spec:
- path: /config - path: /config
music: music:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/music path: /mnt/storage/music
globalMounts: globalMounts:
- path: /mnt/storage/music - path: /mnt/storage/music

View File

@@ -94,28 +94,28 @@ spec:
data: data:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/shared-documents/paperless/data path: /mnt/storage/shared-documents/paperless/data
globalMounts: globalMounts:
- path: /usr/src/paperless/data - path: /usr/src/paperless/data
media: media:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/shared-documents/paperless/media path: /mnt/storage/shared-documents/paperless/media
globalMounts: globalMounts:
- path: /usr/src/paperless/media - path: /usr/src/paperless/media
consume: consume:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/shared-documents/paperless/watch path: /mnt/storage/shared-documents/paperless/watch
globalMounts: globalMounts:
- path: /usr/src/paperless/consume - path: /usr/src/paperless/consume
export: export:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/shared-documents/paperless/export path: /mnt/storage/shared-documents/paperless/export
globalMounts: globalMounts:
- path: /usr/src/paperless/export - path: /usr/src/paperless/export

View File

@@ -96,7 +96,7 @@ spec:
- path: /config - path: /config
downloads: downloads:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/downloads path: /mnt/storage/downloads
globalMounts: globalMounts:
- path: /mnt/storage/downloads - path: /mnt/storage/downloads

View File

@@ -91,19 +91,19 @@ spec:
- path: /config - path: /config
downloads: downloads:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/downloads path: /mnt/storage/downloads
globalMounts: globalMounts:
- path: /mnt/storage/downloads - path: /mnt/storage/downloads
music-qbittorrent: music-qbittorrent:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/music/.qbittorrent path: /mnt/storage/music/.qbittorrent
globalMounts: globalMounts:
- path: /mnt/storage/music/.qbittorrent - path: /mnt/storage/music/.qbittorrent
video-qbittorrent: video-qbittorrent:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/video/.qbittorrent path: /mnt/storage/video/.qbittorrent
globalMounts: globalMounts:
- path: /mnt/storage/video/.qbittorrent - path: /mnt/storage/video/.qbittorrent

View File

@@ -103,14 +103,14 @@ spec:
downloads: downloads:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/downloads path: /mnt/storage/downloads
globalMounts: globalMounts:
- path: /mnt/storage/downloads - path: /mnt/storage/downloads
video: video:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/video path: /mnt/storage/video
globalMounts: globalMounts:
- path: /mnt/storage/video - path: /mnt/storage/video

View File

@@ -85,37 +85,37 @@ spec:
subPath: sync.conf subPath: sync.conf
backups: backups:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/backups path: /mnt/storage/backups
globalMounts: globalMounts:
- path: /sync/backup - path: /sync/backup
home-claude: home-claude:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/home/claude path: /mnt/storage/home/claude
globalMounts: globalMounts:
- path: /sync/home/claude - path: /sync/home/claude
music-transcoded: music-transcoded:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/music_transcoded path: /mnt/storage/music_transcoded
globalMounts: globalMounts:
- path: /sync/music_transcoded - path: /sync/music_transcoded
photo: photo:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/photo path: /mnt/storage/photo
globalMounts: globalMounts:
- path: /sync/photo - path: /sync/photo
shared-documents: shared-documents:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/shared-documents path: /mnt/storage/shared-documents
globalMounts: globalMounts:
- path: /sync/shared-documents - path: /sync/shared-documents
video: video:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/video path: /mnt/storage/video
globalMounts: globalMounts:
- path: /sync/video - path: /sync/video

View File

@@ -85,13 +85,13 @@ spec:
subPath: sync.conf subPath: sync.conf
backups: backups:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/backups path: /mnt/storage/backups
globalMounts: globalMounts:
- path: /sync/backup - path: /sync/backup
home-helene: home-helene:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/home/helene path: /mnt/storage/home/helene
globalMounts: globalMounts:
- path: /sync/home - path: /sync/home

View File

@@ -114,19 +114,19 @@ spec:
- path: /config - path: /config
downloads: downloads:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/downloads path: /mnt/storage/downloads
globalMounts: globalMounts:
- path: /mnt/storage/downloads - path: /mnt/storage/downloads
music-usenet: music-usenet:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/music/.usenet path: /mnt/storage/music/.usenet
globalMounts: globalMounts:
- path: /mnt/storage/music/.usenet - path: /mnt/storage/music/.usenet
video-usenet: video-usenet:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/video/.usenet path: /mnt/storage/video/.usenet
globalMounts: globalMounts:
- path: /mnt/storage/video/.usenet - path: /mnt/storage/video/.usenet

View File

@@ -119,13 +119,13 @@ spec:
- path: /config - path: /config
downloads: downloads:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/downloads path: /mnt/storage/downloads
globalMounts: globalMounts:
- path: /mnt/storage/downloads - path: /mnt/storage/downloads
video: video:
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "192.168.9.10"
path: /mnt/storage/video path: /mnt/storage/video
globalMounts: globalMounts:
- path: /mnt/storage/video - path: /mnt/storage/video

View File

@@ -165,7 +165,7 @@ spec:
scrape_interval: 60s scrape_interval: 60s
metrics_path: "/metrics" metrics_path: "/metrics"
static_configs: static_configs:
- targets: ["${LOCAL_LAN_TRUENAS}:9273"] - targets: ["192.168.9.10:9273"]
labels: labels:
app: "truenas" app: "truenas"
- job_name: "truenas-remote" - job_name: "truenas-remote"

View File

@@ -28,5 +28,4 @@ data:
LOCAL_LAN_OPNSENSE: 192.168.8.1 LOCAL_LAN_OPNSENSE: 192.168.8.1
LOCAL_LAN_TRUENAS: 192.168.9.10 LOCAL_LAN_TRUENAS: 192.168.9.10
LOCAL_LAN_TRUENAS_REMOTE: 10.10.0.2 LOCAL_LAN_TRUENAS_REMOTE: 10.10.0.2
LOCAL_LAN_OPENMEDIAVAULT: 192.168.9.13
TIMEZONE: "Europe/Paris" TIMEZONE: "Europe/Paris"