diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-08-04 21:03:11 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-08-04 21:03:11 +0200 |
commit | 06533abca697ea96885ca36ab0974e5b0aa9d0fa (patch) | |
tree | f4e3f46dd635c1a1ddf8a30c15f52e5f11960cd1 | |
parent | acmetool: update subscriber aggrement for let's encrypt (diff) |
ch-epimetheus: replace disk
-rw-r--r-- | chaos-at-home/ch-epimetheus.yml | 6 | ||||
-rw-r--r-- | inventory/host_vars/ch-epimetheus.yml | 2 |
2 files changed, 6 insertions, 2 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 diff --git a/inventory/host_vars/ch-epimetheus.yml b/inventory/host_vars/ch-epimetheus.yml index f05e6b26..938aef34 100644 --- a/inventory/host_vars/ch-epimetheus.yml +++ b/inventory/host_vars/ch-epimetheus.yml @@ -50,7 +50,7 @@ prometheus_job_multitarget_ssl__probe: luks_volumes: crypto-sata0: passphrase: "{{ vault_luks_volumes['crypto-sata0'].passphrase }}" - device: /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N6ZP3KFJ + device: /dev/disk/by-id/ata-ST4000VN008-2DR166_ZGY976JP crypto-sata1: passphrase: "{{ vault_luks_volumes['crypto-sata1'].passphrase }}" device: /dev/disk/by-id/ata-ST4000VN008-2DR166_ZDHAVYJT |