summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-01-10 00:08:50 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-01-10 00:08:50 +0100
commit0de72aa912eca2a8af1a0adf5f9ec35684c6275e (patch)
tree9b2ab93b71b5c2fd984fc2435f191c206a52bd6f
parentdata disk of ch-apps is going to use zfs itself: don't create backup snapshot... (diff)
ch-apps zfs based data disk
-rw-r--r--chaos-at-home/ch-apps.yml2
-rw-r--r--inventory/host_vars/ch-apps.yml21
2 files changed, 23 insertions, 0 deletions
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