diff --git a/ansible/galaxy-requirements.yml b/ansible/galaxy-requirements.yml index b684abd..01b1334 100644 --- a/ansible/galaxy-requirements.yml +++ b/ansible/galaxy-requirements.yml @@ -14,3 +14,6 @@ roles: - src: rossmcdonald.telegraf - src: geerlingguy.gitlab - src: dokku_bot.ansible_dokku + - src: https://github.com/RealOrangeOne/ansible-role-snapraid + version: snapraid-plain-cron + name: IronicBadger.snapraid diff --git a/ansible/host_vars/pve.yml b/ansible/host_vars/pve.yml index d5435c3..7a8cdf4 100644 --- a/ansible/host_vars/pve.yml +++ b/ansible/host_vars/pve.yml @@ -16,3 +16,28 @@ sanoid_datasets: rpool: use_template: production recursive: true + +# Snapraid +snapraid_install: false +snapraid_runner: false + +snapraid_data_disks: + - path: /mnt/bulk + content: true +snapraid_parity_disks: + - path: /mnt/parity + content: true + +snapraid_content_files: + - /mnt/tank/files/snapraid.content + - /var/snapraid.content + +snapraid_config_excludes: + - "*.unrecoverable" + - /lost+found/ + - "*.!sync" + - /tmp/ + +snapraid_scrub_schedule: + hour: 5 + weekday: 4 diff --git a/ansible/main.yml b/ansible/main.yml index 6fab7b5..5de8378 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -69,6 +69,8 @@ - zfs - pve_nebula_route - telegraf + - role: IronicBadger.snapraid + become: true - hosts: forrest roles: