From 25cdde6f52de7987d83cc7f0d179757a4a9f9df5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 2 May 2021 17:18:42 +0200 Subject: enable backup for ch-equinox-t450s home --- chaos-at-home/ch-equinox-t450s.yml | 1 + inventory/host_vars/ch-epimetheus.yml | 7 +++++++ inventory/host_vars/ch-equinox-t450s.yml | 10 ++++++++++ 3 files changed, 18 insertions(+) diff --git a/chaos-at-home/ch-equinox-t450s.yml b/chaos-at-home/ch-equinox-t450s.yml index e86f928d..ed3d1c3a 100644 --- a/chaos-at-home/ch-equinox-t450s.yml +++ b/chaos-at-home/ch-equinox-t450s.yml @@ -14,6 +14,7 @@ - role: apt-repo/riot - role: apt-repo/nordvpn - role: storage/zfs/pools + - role: storage/zfs/sanoid - role: ws/base - role: core/admin-users - role: network/wireguard/base diff --git a/inventory/host_vars/ch-epimetheus.yml b/inventory/host_vars/ch-epimetheus.yml index 6065f6c5..6ade6af4 100644 --- a/inventory/host_vars/ch-epimetheus.yml +++ b/inventory/host_vars/ch-epimetheus.yml @@ -90,3 +90,10 @@ zfs_syncoid_sources: exclude: - '^storage/backups' - '^storage/vm' + 'ch-equinox-t450s': + ssh_hostname: 192.168.28.103 + ssh_port: 222 + paths: + storage: + recursive: yes + skip_parent: yes diff --git a/inventory/host_vars/ch-equinox-t450s.yml b/inventory/host_vars/ch-equinox-t450s.yml index 9603549e..88e41297 100644 --- a/inventory/host_vars/ch-equinox-t450s.yml +++ b/inventory/host_vars/ch-equinox-t450s.yml @@ -26,6 +26,9 @@ network: base_modules_blacklist: "{{ base_modules_blacklist_none }}" sshd_password_auth: yes +ssh_keys_root_extra: + - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9AkOBxvf1wZ0B3wEyf7O3GbaIGx5o2f6cVuQIrOjeFfgMSAr1LwiB/gmHhMSEq6OSauD37TA5yDIrzk6NPPjVs/wiklsHgYtTqIxSPItTZFPX4gLvNwwGuRvEW9bTEiHd+bVPIiIT7HOje0kgacjan44rdgppX9DgcUp2j7uSZZabsxDCS/ms0slhwBNU1gtR31PoQ56vIya23D2uMauNAbRJzDEOfAjy4pHF8njYcXPas/yrbLi8PUZ1YO1u/AZto96EIYfHaCLWlstqeCX+R2JrTunvfTr8TF3AkFw8lHMzk3neUR+tPAAFQaqeTlqGPiSNq1Oyf+52XR16qwhd equinox@mail + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZK9NBainiE0+A8pT8dbwlNZ0k0AZVhLTzUSo3YtKJt ZFS Backup syncoid@epimetheus zsh_banner: equinox @@ -48,6 +51,13 @@ zfs_pools: mountpoint: /srv/storage create_vdevs: /dev/mapper/t450s-storage +zfs_sanoid_modules: + storage: + use_template: production + recursive: yes + process_children_only: yes + + ws_base_home_zfs: pool: storage name: home -- cgit v1.2.3