From 2998958ddd352f7ebb76ca2060ff3d9837b79352 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 15 Jun 2023 09:09:48 +0100 Subject: [PATCH] Provision a new SSD for DBs This makes the data easier to back up and splits it out from the main boot pool --- ansible/host_vars/pve/main.yml | 6 ++++++ ansible/host_vars/restic/main.yml | 1 + ansible/roles/gitea/files/docker-compose.yml | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ansible/host_vars/pve/main.yml b/ansible/host_vars/pve/main.yml index 64478f1..908f5ba 100644 --- a/ansible/host_vars/pve/main.yml +++ b/ansible/host_vars/pve/main.yml @@ -3,6 +3,7 @@ private_ip: "{{ pve_hosts.pve.ip }}" zpools_to_scrub: - tank - rpool + - speed # 5GB, or so zfs_arc_size: 5000000000 @@ -13,6 +14,11 @@ sanoid_datasets: recursive: true process_children_only: true + speed: + use_template: production + recursive: true + process_children_only: true + rpool: use_template: production recursive: true diff --git a/ansible/host_vars/restic/main.yml b/ansible/host_vars/restic/main.yml index 49e08ca..1ae482c 100644 --- a/ansible/host_vars/restic/main.yml +++ b/ansible/host_vars/restic/main.yml @@ -1,5 +1,6 @@ restic_backup_locations: - /mnt/host/mnt/tank + - /mnt/host/mnt/speed - /mnt/host/etc/pve - /mnt/home-assistant restic_healthchecks_id: "{{ vault_restic_healthchecks_id }}" diff --git a/ansible/roles/gitea/files/docker-compose.yml b/ansible/roles/gitea/files/docker-compose.yml index 9353f3b..1c40d13 100644 --- a/ansible/roles/gitea/files/docker-compose.yml +++ b/ansible/roles/gitea/files/docker-compose.yml @@ -33,7 +33,7 @@ services: image: postgres:14-alpine restart: unless-stopped volumes: - - ./db:/var/lib/postgresql/data + - /mnt/speed/dbs/postgres/gitea:/var/lib/postgresql/data environment: - POSTGRES_PASSWORD=gitea - POSTGRES_USER=gitea @@ -42,7 +42,7 @@ services: image: redis:7-alpine restart: unless-stopped volumes: - - ./redis:/data + - /mnt/speed/dbs/redis/gitea:/data networks: traefik: