summaryrefslogtreecommitdiff
path: root/chaos-at-home
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-01-08 23:16:09 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-01-08 23:16:09 +0100
commit15bdc78c65159834c9a3335c88053589535549ef (patch)
tree66e11b70bdfe8933a3ef567ac3fc765c5adb62c4 /chaos-at-home
parentpromzone chaos-at-home: upgrade prometheus components (diff)
ch-epimetheus now is a RPi CM4
Diffstat (limited to 'chaos-at-home')
-rw-r--r--chaos-at-home/ch-epimetheus.yml24
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('-', '_'))) -}}