diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-01-08 23:16:26 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-01-08 23:16:26 +0100 |
commit | bad0b3558e8f2eb02b50815c1ec61d457bdd44ec (patch) | |
tree | 66e11b70bdfe8933a3ef567ac3fc765c5adb62c4 /chaos-at-home | |
parent | promzone chaos-at-home: upgrade prometheus components (diff) | |
parent | ch-epimetheus now is a RPi CM4 (diff) |
Merge branch 'topic/epimetheus-cm4'
Diffstat (limited to 'chaos-at-home')
-rw-r--r-- | chaos-at-home/ch-epimetheus.yml | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/chaos-at-home/ch-epimetheus.yml b/chaos-at-home/ch-epimetheus.yml index 148cda82..d091ffc5 100644 --- a/chaos-at-home/ch-epimetheus.yml +++ b/chaos-at-home/ch-epimetheus.yml @@ -7,32 +7,18 @@ - role: core/sshd/base - role: core/zsh - role: core/ntp - - role: core/cpu-microcode + +- name: Payload Setup + hosts: ch-epimetheus + roles: - role: apt-repo/spreadspace - role: nginx/base - role: monitoring/prometheus/exporter - - role: network/wakeonlan - role: storage/luks/volumes - role: storage/zfs/pools - role: storage/zfs/sanoid - role: storage/zfs/syncoid post_tasks: - - name: install simple suspend script - copy: - content: | - #!/bin/bash - - if [ -z "$1" ]; then - echo "suspending indefinitely" - systemctl suspend - else - #rtcwake --seconds 300 -m mem - echo "suspending for $1" - rtcwake --time $(date -d "$1" +%s) -m mem - fi - dest: /root/suspend.sh - mode: 0755 - - name: install post-boot script copy: dest: /usr/local/bin/post-boot @@ -59,8 +45,6 @@ content: | #!/bin/bash {% set disk_variables = [] %} - disk_primary=$(basename $(realpath '{{ install.disks.primary }}')) - {{ disk_variables.append('$disk_primary') -}} {% for name,volume in luks_volumes.items() %} disk_{{ name | replace('-', '_') }}=$(basename $(realpath '{{ volume.device }}')) {{ disk_variables.append('$disk_'+(name | replace('-', '_'))) -}} |