summaryrefslogtreecommitdiff
path: root/dan/sk-tomnext.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-05-18 03:58:53 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-05-25 00:04:27 +0200
commita6a1e9bf9b42cd54cd46202dee9212b3001f3213 (patch)
treefc315b2f61a7b417f3f03d60d1908e3eedb072b8 /dan/sk-tomnext.yml
parentfix zfs role for buster (diff)
add temporary workaround for network interface stability fix
Diffstat (limited to 'dan/sk-tomnext.yml')
-rw-r--r--dan/sk-tomnext.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/dan/sk-tomnext.yml b/dan/sk-tomnext.yml
index 54c31bfd..2fd81699 100644
--- a/dan/sk-tomnext.yml
+++ b/dan/sk-tomnext.yml
@@ -11,3 +11,22 @@
- role: zfs/base
- role: vm/host
- role: installer/debian/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
+ systemctl restart zfs-share.service
+ mount -a
+
+ sleep 2
+ systemctl restart libvirtd.service