46 lines
2.1 KiB
YAML
46 lines
2.1 KiB
YAML
---
|
|
# Configuration for the Proxmox nodes themselves — as distinct from the guests
|
|
# on them, which come from the API-backed dynamic inventory and are configured
|
|
# by playbooks/proxmox.yml. Applied by playbooks/pve_host.yml.
|
|
#
|
|
# In group_vars rather than a host_vars file per node: both nodes want the
|
|
# same backup storage and the same schedule, and each backs up whichever
|
|
# guests are running on it, so there is nothing here that differs between
|
|
# them. A node that ever does need to differ can still override in
|
|
# host_vars/<node>.yml.
|
|
|
|
# Where archives go. An export on the NAS, added to Proxmox as a storage so
|
|
# vzdump can write to it — the node mounts it, no guest ever sees it.
|
|
#
|
|
# nas01 (192.168.50.1). This used to point at nas2, which no longer exists —
|
|
# and note the address it used, 192.168.50.2, now belongs to
|
|
# turtle-proxmox-01, so a stale copy of this value would have had each node
|
|
# quietly trying to write its backups to itself.
|
|
pve_backup_storage: nas-backup
|
|
pve_backup_storage_type: nfs
|
|
pve_backup_nfs_server: 192.168.50.1
|
|
pve_backup_nfs_export: /mnt/user/backups/proxmox
|
|
|
|
# Every guest on the node, so anything added later is covered without an edit
|
|
# here. Set false and list VMIDs (postgres is 161, forgejo 160 — see the
|
|
# `backup_vmids` output in build/config/terraform/main.tf) to be selective.
|
|
#
|
|
# Applied per node, so with two nodes each one archives whatever is currently
|
|
# running on it. That matters for a replicated guest: it is a real guest on
|
|
# one node and an inactive replica volume on the other, so it is backed up
|
|
# once, by whichever node currently owns it — and after a failover, by the
|
|
# other one, without an edit here.
|
|
pve_backup_all: true
|
|
|
|
# 02:00, half an hour after Forgejo's database dump at 01:30
|
|
# (src/forgejo/ansible/proxmox/vars.yml). The archive is only a complete
|
|
# restore point if the dump inside it is from the same night — move one and
|
|
# move the other.
|
|
pve_backup_schedule: "02:00"
|
|
|
|
# Archive retention, applied by Proxmox. Distinct from the retention inside a
|
|
# guest: Proxmox prunes archives, not their contents.
|
|
pve_backup_prune:
|
|
keep-daily: 7
|
|
keep-weekly: 4
|
|
keep-monthly: 6
|