mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-01 08:08:59 +02:00
Renamed cymais to infinito and did some other optimations and logout implementations
This commit is contained in:
@@ -17,12 +17,12 @@ The purpose of this role is to provide automated healing for Docker Compose envi
|
||||
- **Container Health Monitoring:** Detects unhealthy or exited containers.
|
||||
- **Automated Recovery:** Restarts failed containers and resolves port binding issues.
|
||||
- **Run-once Setup Logic:** Ensures idempotent execution by controlling task flow with internal flags.
|
||||
- **System Role Integration:** Seamlessly integrates with CyMaIS system maintenance logic.
|
||||
- **System Role Integration:** Seamlessly integrates with Infinito.Nexus system maintenance logic.
|
||||
|
||||
## Credits 📝
|
||||
|
||||
Developed and maintained by **Kevin Veen-Birkenbach**.
|
||||
Learn more at [www.veen.world](https://www.veen.world)
|
||||
|
||||
Part of the [CyMaIS Project](https://github.com/kevinveenbirkenbach/cymais)
|
||||
License: [CyMaIS NonCommercial License (CNCL)](https://s.veen.world/cncl)
|
||||
Part of the [Infinito.Nexus Project](https://github.com/kevinveenbirkenbach/infinito-nexus)
|
||||
License: [Infinito.Nexus NonCommercial License (CNCL)](https://s.veen.world/cncl)
|
||||
|
@@ -40,8 +40,8 @@ def main(base_directory):
|
||||
|
||||
while blocker_running:
|
||||
try:
|
||||
bash("systemctl is-active --quiet sys-bkp-docker-2-loc.cymais.service")
|
||||
bash("systemctl is-active --quiet update-docker.cymais.service")
|
||||
bash("systemctl is-active --quiet sys-bkp-docker-2-loc.infinito.service")
|
||||
bash("systemctl is-active --quiet update-docker.infinito.service")
|
||||
print("Backup is running.")
|
||||
print(f"Trying again in {waiting_time} seconds.")
|
||||
time.sleep(waiting_time)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
- name: restart sys-rpr-docker-soft.cymais.service
|
||||
- name: restart sys-rpr-docker-soft.infinito.service
|
||||
systemd:
|
||||
name: sys-rpr-docker-soft.cymais.service
|
||||
name: sys-rpr-docker-soft.infinito.service
|
||||
state: restarted
|
||||
daemon_reload: yes
|
||||
|
@@ -2,7 +2,7 @@
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
description: "Automated recovery for unhealthy or exited Docker Compose containers."
|
||||
license: "CyMaIS NonCommercial License (CNCL)"
|
||||
license: "Infinito.Nexus NonCommercial License (CNCL)"
|
||||
license_url: "https://s.veen.world/cncl"
|
||||
company: |
|
||||
Kevin Veen-Birkenbach
|
||||
@@ -19,8 +19,8 @@ galaxy_info:
|
||||
- systemd
|
||||
- automation
|
||||
- archlinux
|
||||
repository: https://s.veen.world/cymais
|
||||
issue_tracker_url: https://s.veen.world/cymaisissues
|
||||
documentation: https://s.veen.world/cymais
|
||||
repository: https://github.com/kevinveenbirkenbach/infinito-nexus
|
||||
issue_tracker_url: https://github.com/kevinveenbirkenbach/infinito-nexus/issues
|
||||
documentation: "https://docs.infinito.nexus/"
|
||||
dependencies:
|
||||
- sys-lock
|
@@ -9,14 +9,14 @@
|
||||
copy:
|
||||
src: sys-rpr-docker-soft.py
|
||||
dest: "{{heal_docker}}sys-rpr-docker-soft.py"
|
||||
notify: restart sys-rpr-docker-soft.cymais.service
|
||||
notify: restart sys-rpr-docker-soft.infinito.service
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: create sys-rpr-docker-soft.cymais.service
|
||||
- name: create sys-rpr-docker-soft.infinito.service
|
||||
template:
|
||||
src: sys-rpr-docker-soft.service.j2
|
||||
dest: /etc/systemd/system/sys-rpr-docker-soft.cymais.service
|
||||
notify: restart sys-rpr-docker-soft.cymais.service
|
||||
dest: /etc/systemd/system/sys-rpr-docker-soft.infinito.service
|
||||
notify: restart sys-rpr-docker-soft.infinito.service
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: "set 'service_name' to '{{ role_name }}'"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=restart unhealthy docker containers
|
||||
OnFailure=sys-alm-compose.cymais@%n.service
|
||||
OnFailure=sys-alm-compose.infinito@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Reference in New Issue
Block a user