summaryrefslogtreecommitdiff
path: root/chaos-at-home/ch-epimetheus.yml
diff options
context:
space:
mode:
Diffstat (limited to 'chaos-at-home/ch-epimetheus.yml')
-rw-r--r--chaos-at-home/ch-epimetheus.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/chaos-at-home/ch-epimetheus.yml b/chaos-at-home/ch-epimetheus.yml
index 1479abd2..f1c567dd 100644
--- a/chaos-at-home/ch-epimetheus.yml
+++ b/chaos-at-home/ch-epimetheus.yml
@@ -8,6 +8,10 @@
- role: core/zsh
- role: core/ntp
- role: network/wakeonlan
+ - role: cryptdisk
+ - role: zfs/base
+ - role: apt-repo/spreadspace
+ - role: zfs/sanoid
post_tasks:
- name: install simple suspend script
copy:
@@ -24,3 +28,30 @@
fi
dest: /root/suspend.sh
mode: 0755
+
+ - name: install post-boot script
+ copy:
+ dest: /usr/local/bin/post-boot
+ mode: 0755
+ content: |
+ #!/bin/bash
+ set -e
+
+ {% for name, volume in cryptdisk_volumes.items() %}
+ echo -e "opening crypto volume: \033[1;37m{{ name }}\033[0m"
+ cryptsetup luksOpen '{{ volume.device }}' '{{ name }}'
+ {% endfor %}
+
+ systemctl restart zfs-import-cache.service
+ systemctl restart zfs-mount.service
+ systemctl restart zfs-share.service
+ systemctl restart zfs-zed.service
+ mount -a
+
+ - name: install dstat script
+ copy:
+ dest: /usr/local/bin/dstat.sh
+ mode: 0755
+ content: |
+ #!/bin/bash
+ exec dstat -cnd -N enp5s0 -D sdc,sda,sdb,sdd,sde --disk-util --top-io --top-bio