summaryrefslogtreecommitdiff
path: root/dan/sk-2019.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-10-02 20:51:54 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-10-02 20:51:54 +0200
commitf21ede2cd679e7bc92357b76d99a4b3977502e34 (patch)
tree52dbd0fa77eef7fb51b2a01dfab0eb9f1122fd45 /dan/sk-2019.yml
parentfix vmhost network configs (diff)
zfs arc size limits
Diffstat (limited to 'dan/sk-2019.yml')
-rw-r--r--dan/sk-2019.yml28
1 files changed, 15 insertions, 13 deletions
diff --git a/dan/sk-2019.yml b/dan/sk-2019.yml
index 16045795..058f2732 100644
--- a/dan/sk-2019.yml
+++ b/dan/sk-2019.yml
@@ -8,6 +8,21 @@
- role: admin-user
- role: cryptdisk
- role: zfs/base
+ tasks:
+ - 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() %}
+ cryptsetup luksOpen '{{ volume.device }}' '{{ name }}'
+ {% endfor %}
+ systemctl restart zfs-import-cache.service
+ systemctl restart zfs-mount.service
+ mount -a
### TODO:
#
@@ -32,16 +47,3 @@
#
# mount -a
#
-#
-### write script to /usr/local/bin/post-boot
-##
-## #!/bin/bash
-## set -e
-## cryptsetup luksOpen /dev/disk/by-id/nvme-eui.0025388791050fef-part3 crypto-nvme0
-## cryptsetup luksOpen /dev/disk/by-id/nvme-eui.0025388791050fdc-part3 crypto-nvme1
-## systemctl restart zfs-import-cache.service
-## systemctl restart zfs-mount.service
-## mount -a
-#
-# chmod +x /usr/local/bin/post-boot
-#