fix(core-git): не терять образ раннера и не деплоить из-за пустого файла
ansible-core-mon / deploy (push) Successful in 26s
ansible-rus-central / deploy (push) Successful in 54s
ansible-core-net / deploy (push) Successful in 58s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m18s
ansible-opnsense / deploy (push) Successful in 8s
ansible-core-mon / deploy (push) Successful in 26s
ansible-rus-central / deploy (push) Successful in 54s
ansible-core-net / deploy (push) Successful in 58s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m18s
ansible-opnsense / deploy (push) Successful in 8s
Архив homelab-ansible хранится на диске CT, проверка раннера вынесена в отдельную кнопку, cAdvisor смотрит свой порт. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
db92435117
commit
321c78fc27
10 files changed
+89
-7
No files matched your search
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# Со станции. Terraform не умеет записать AppArmor для CT 904.
|
||||
set -euo pipefail
|
||||
|
||||
line=$(ssh -o BatchMode=yes netcore 'grep -E "^lxc.apparmor.profile:" /etc/pve/lxc/904.conf' || true)
|
||||
if [ "$line" = "lxc.apparmor.profile: unconfined" ]; then
|
||||
echo "ok: $line"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "В /etc/pve/lxc/904.conf нет lxc.apparmor.profile: unconfined" >&2
|
||||
echo "Сейчас: ${line:-пусто}" >&2
|
||||
echo "Без этой строки задачи Gitea падают на старте контейнера. После правки CT надо перезагрузить." >&2
|
||||
exit 1
|
||||
Reference in new issue
Block a user