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.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/chaos-at-home/ch-epimetheus.yml b/chaos-at-home/ch-epimetheus.yml
index 5900ce3d..98eab3e2 100644
--- a/chaos-at-home/ch-epimetheus.yml
+++ b/chaos-at-home/ch-epimetheus.yml
@@ -58,4 +58,8 @@
mode: 0755
content: |
#!/bin/bash
- exec dstat -cnd -N {{ network.primary.name }} -D sdc,sda,sdb,sdd,sde --disk-util --top-io --top-bio
+ disk_primary=$(basename $(realpath '{{ install.disks.primary }}'))
+ {% for name,volume in luks_volumes.items() %}
+ disk_{{ name | replace('-', '_') }}=$(basename $(realpath '{{ volume.device }}'))
+ {% endfor %}
+ exec dstat -cnd -N {{ network.primary.name }} -D "$disk_primary,$disk_{{ luks_volumes | map('replace', '-', '_') | join(',$disk_') }}" --disk-util --top-io --top-bio