From 0de72aa912eca2a8af1a0adf5f9ec35684c6275e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 10 Jan 2022 00:08:50 +0100 Subject: ch-apps zfs based data disk --- chaos-at-home/ch-apps.yml | 2 ++ inventory/host_vars/ch-apps.yml | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/chaos-at-home/ch-apps.yml b/chaos-at-home/ch-apps.yml index 8577b8b7..d8dc7a70 100644 --- a/chaos-at-home/ch-apps.yml +++ b/chaos-at-home/ch-apps.yml @@ -7,3 +7,5 @@ - role: core/sshd/base - role: core/zsh - role: core/ntp + - role: storage/zfs/pools + - role: storage/zfs/sanoid diff --git a/inventory/host_vars/ch-apps.yml b/inventory/host_vars/ch-apps.yml index c5f20645..a251f4db 100644 --- a/inventory/host_vars/ch-apps.yml +++ b/inventory/host_vars/ch-apps.yml @@ -35,3 +35,24 @@ network: gateway: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ipaddr('address') }}" interfaces: - *_network_primary_ + + +apt_repo_components: +- main +- contrib ## for zfs + + +zfs_arc_size: + min: 512MB + max: 2GB + +zfs_pools: + storage: + mountpoint: /srv/storage + create_vdevs: /dev/sdb + +zfs_sanoid_modules: + storage: + use_template: production + recursive: yes + process_children_only: yes -- cgit v1.2.3