diff --git a/roles/alert-core/README.md b/roles/alert-compose/README.md similarity index 100% rename from roles/alert-core/README.md rename to roles/alert-compose/README.md diff --git a/roles/alert-core/handlers/main.yml b/roles/alert-compose/handlers/main.yml similarity index 76% rename from roles/alert-core/handlers/main.yml rename to roles/alert-compose/handlers/main.yml index 5f9b50f6..b04ffdd7 100644 --- a/roles/alert-core/handlers/main.yml +++ b/roles/alert-compose/handlers/main.yml @@ -1,6 +1,6 @@ -- name: "restart alert-core service" +- name: "restart alert-compose service" systemd: - name: alert-core.cymais.service + name: alert-compose.cymais.service daemon_reload: yes when: run_once_systemd_notifier_service is not defined diff --git a/roles/alert-core/meta/main.yml b/roles/alert-compose/meta/main.yml similarity index 100% rename from roles/alert-core/meta/main.yml rename to roles/alert-compose/meta/main.yml diff --git a/roles/alert-core/tasks/main.yml b/roles/alert-compose/tasks/main.yml similarity index 55% rename from roles/alert-core/tasks/main.yml rename to roles/alert-compose/tasks/main.yml index b2ee5afc..30967f55 100644 --- a/roles/alert-core/tasks/main.yml +++ b/roles/alert-compose/tasks/main.yml @@ -1,9 +1,9 @@ --- -- name: configure alert-core.cymais@.service +- name: configure alert-compose.cymais@.service template: - src: alert-core@.service.j2 - dest: "/etc/systemd/system/alert-core.cymais@.service" - notify: "restart alert-core service" + src: alert-compose@.service.j2 + dest: "/etc/systemd/system/alert-compose.cymais@.service" + notify: "restart alert-compose service" when: run_once_systemd_notifier_service is not defined - name: run the systemd_notifier_service tasks once diff --git a/roles/alert-core/templates/alert-core@.service.j2 b/roles/alert-compose/templates/alert-compose@.service.j2 similarity index 100% rename from roles/alert-core/templates/alert-core@.service.j2 rename to roles/alert-compose/templates/alert-compose@.service.j2 diff --git a/roles/alert-email/README.md b/roles/alert-email/README.md index 640cb6fa..1787af37 100644 --- a/roles/alert-email/README.md +++ b/roles/alert-email/README.md @@ -6,7 +6,7 @@ This role installs and configures the necessary components for sending email not ## Overview -Optimized for secure and reliable service failure notifications, this role is an integral part of the overall `alert-core` suite. It ensures that, upon failure of a critical service, an email alert is sent automatically to enable prompt troubleshooting. +Optimized for secure and reliable service failure notifications, this role is an integral part of the overall `alert-compose` suite. It ensures that, upon failure of a critical service, an email alert is sent automatically to enable prompt troubleshooting. ## Purpose @@ -17,7 +17,7 @@ The primary purpose of this role is to provide a comprehensive solution for auto - **Service Installation & Configuration:** Installs msmtp and configures the email sending service. - **Customizable Templates:** Supports tailoring email templates for service failure notifications. - **Secure Notifications:** Integrates with systemd to trigger email alerts when services fail. -- **Suite Integration:** Part of the `alert-core` suite, offering a unified approach to service failure notifications. +- **Suite Integration:** Part of the `alert-compose` suite, offering a unified approach to service failure notifications. ## Other Resources diff --git a/roles/alert-email/meta/main.yml b/roles/alert-email/meta/main.yml index a5b12a12..a88c2aa0 100644 --- a/roles/alert-email/meta/main.yml +++ b/roles/alert-email/meta/main.yml @@ -1,7 +1,7 @@ --- galaxy_info: author: "Kevin Veen-Birkenbach" - description: "Installs and configures components for sending email notifications. This role is part of the alert-core suite, providing automated alerts when services fail." + description: "Installs and configures components for sending email notifications. This role is part of the alert-compose suite, providing automated alerts when services fail." license: "CyMaIS NonCommercial License (CNCL)" license_url: "https://s.veen.world/cncl" company: | diff --git a/roles/alert-telegram/README.md b/roles/alert-telegram/README.md index bc3c2355..6bdb3b20 100644 --- a/roles/alert-telegram/README.md +++ b/roles/alert-telegram/README.md @@ -6,7 +6,7 @@ This role installs and configures the necessary components for sending notificat ## Overview -Optimized for real-time alerts, this role is a key component of the overall [`alert-core` suite](../). It ensures that, upon failure of a critical service, a Telegram message is automatically sent to notify administrators and enable prompt troubleshooting. +Optimized for real-time alerts, this role is a key component of the overall [`alert-compose` suite](../). It ensures that, upon failure of a critical service, a Telegram message is automatically sent to notify administrators and enable prompt troubleshooting. ## Purpose @@ -17,7 +17,7 @@ The primary purpose of this role is to provide a robust solution for automated T - **Service Installation & Configuration:** Installs and configures necessary components (including the `curl` package). - **Customizable Templates:** Supports tailored Telegram message templates for service failure notifications. - **Secure Notifications:** Leverages systemd to trigger alerts automatically when services fail. -- **Suite Integration:** Part of the [`alert-core` suite](../) which includes related roles such as [alert-email](../alert-email/README.md) and others. +- **Suite Integration:** Part of the [`alert-compose` suite](../) which includes related roles such as [alert-email](../alert-email/README.md) and others. ## Other Resources diff --git a/roles/alert-telegram/meta/main.yml b/roles/alert-telegram/meta/main.yml index 1049f78d..5c8cacfa 100644 --- a/roles/alert-telegram/meta/main.yml +++ b/roles/alert-telegram/meta/main.yml @@ -1,7 +1,7 @@ --- galaxy_info: author: "Kevin Veen-Birkenbach" - description: "Installs and configures components for sending Telegram notifications through systemd. This role is part of the alert-core suite, providing automated alerts when services fail." + description: "Installs and configures components for sending Telegram notifications through systemd. This role is part of the alert-compose suite, providing automated alerts when services fail." license: "CyMaIS NonCommercial License (CNCL)" license_url: "https://s.veen.world/cncl" company: | diff --git a/roles/backup-data-to-usb/templates/backup-data-to-usb.service.j2 b/roles/backup-data-to-usb/templates/backup-data-to-usb.service.j2 index accb931c..85bb33c8 100644 --- a/roles/backup-data-to-usb/templates/backup-data-to-usb.service.j2 +++ b/roles/backup-data-to-usb/templates/backup-data-to-usb.service.j2 @@ -1,7 +1,7 @@ [Unit] Description=Backup to USB when mounted to {{ backup_to_usb_mount }} Wants={{systemctl_mount_service_name}} -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/backup-docker-to-local/meta/main.yml b/roles/backup-docker-to-local/meta/main.yml index 8356ff2d..d1ada20c 100644 --- a/roles/backup-docker-to-local/meta/main.yml +++ b/roles/backup-docker-to-local/meta/main.yml @@ -24,7 +24,7 @@ galaxy_info: documentation: "https://s.veen.world/cymais" dependencies: - backup-provider - - alert-core + - alert-compose - cleanup-failed-docker-backups - maintenance-lock - backup-directory-validator \ No newline at end of file diff --git a/roles/backup-docker-to-local/templates/backup-docker-to-local-everything.service.j2 b/roles/backup-docker-to-local/templates/backup-docker-to-local-everything.service.j2 index 661ec2e1..886bc34d 100644 --- a/roles/backup-docker-to-local/templates/backup-docker-to-local-everything.service.j2 +++ b/roles/backup-docker-to-local/templates/backup-docker-to-local-everything.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=backup docker volumes to local folder -OnFailure=alert-core.cymais@%n.service cleanup-failed-docker-backups.cymais.service +OnFailure=alert-compose.cymais@%n.service cleanup-failed-docker-backups.cymais.service [Service] Type=oneshot diff --git a/roles/backup-docker-to-local/templates/backup-docker-to-local.service.j2 b/roles/backup-docker-to-local/templates/backup-docker-to-local.service.j2 index 5ca649b0..ad39cef1 100644 --- a/roles/backup-docker-to-local/templates/backup-docker-to-local.service.j2 +++ b/roles/backup-docker-to-local/templates/backup-docker-to-local.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=backup docker volumes to local folder -OnFailure=alert-core.cymais@%n.service cleanup-failed-docker-backups.cymais.service +OnFailure=alert-compose.cymais@%n.service cleanup-failed-docker-backups.cymais.service [Service] Type=oneshot diff --git a/roles/backup-remote-to-local/meta/main.yml b/roles/backup-remote-to-local/meta/main.yml index b47ec69a..2d3d3ade 100644 --- a/roles/backup-remote-to-local/meta/main.yml +++ b/roles/backup-remote-to-local/meta/main.yml @@ -26,7 +26,7 @@ galaxy_info: documentation: "https://s.veen.world/cymais" dependencies: - generic-git - - alert-core + - alert-compose - cleanup-backups-timer - cleanup-failed-docker-backups - maintenance-lock diff --git a/roles/backup-remote-to-local/templates/backup-remote-to-local.service.j2 b/roles/backup-remote-to-local/templates/backup-remote-to-local.service.j2 index 8ce3e189..e9795ccf 100644 --- a/roles/backup-remote-to-local/templates/backup-remote-to-local.service.j2 +++ b/roles/backup-remote-to-local/templates/backup-remote-to-local.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=pull remote backups -OnFailure=alert-core.cymais@%n.service cleanup-failed-docker-backups.cymais.service +OnFailure=alert-compose.cymais@%n.service cleanup-failed-docker-backups.cymais.service [Service] Type=oneshot diff --git a/roles/cleanup-backups-service/README.md b/roles/cleanup-backups-service/README.md index cf910cdd..121c9e60 100644 --- a/roles/cleanup-backups-service/README.md +++ b/roles/cleanup-backups-service/README.md @@ -10,7 +10,7 @@ Optimized for effective disk space management, this role: - Installs required packages (e.g. [lsof](https://en.wikipedia.org/wiki/Lsof) and [psutil](https://pypi.org/project/psutil/)) using pacman. - Creates a directory for storing cleanup scripts. - Deploys a Python script that deletes old backup directories when disk usage is too high. -- Configures a systemd service to run the cleanup script, with notifications via [alert-core](../alert-core/README.md). +- Configures a systemd service to run the cleanup script, with notifications via [alert-compose](../alert-compose/README.md). ## Purpose diff --git a/roles/cleanup-backups-service/meta/main.yml b/roles/cleanup-backups-service/meta/main.yml index 4715a24d..faed4821 100644 --- a/roles/cleanup-backups-service/meta/main.yml +++ b/roles/cleanup-backups-service/meta/main.yml @@ -23,5 +23,5 @@ galaxy_info: documentation: "https://s.veen.world/cymais" dependencies: - generic-python-pip - - alert-core + - alert-compose - maintenance-lock diff --git a/roles/cleanup-backups-service/templates/cleanup-backups.service.j2 b/roles/cleanup-backups-service/templates/cleanup-backups.service.j2 index db493aff..3d7d96fb 100644 --- a/roles/cleanup-backups-service/templates/cleanup-backups.service.j2 +++ b/roles/cleanup-backups-service/templates/cleanup-backups.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=delete old backups -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/cleanup-certs/README.md b/roles/cleanup-certs/README.md index 656405ed..d936bece 100644 --- a/roles/cleanup-certs/README.md +++ b/roles/cleanup-certs/README.md @@ -9,7 +9,7 @@ This Ansible role automates the detection, revocation and deletion of unused Let - Installs the `certreap` cleanup tool using the `pkgmgr-install` role - Deploys and configures a `cleanup-certs.cymais.service` systemd unit - (Optionally) Sets up a recurring cleanup via a systemd timer using the `generic-timer` role -- Integrates with `alert-core` to send failure notifications +- Integrates with `alert-compose` to send failure notifications - Ensures idempotent execution with a `run_once_cleanup_certs` flag ## Features @@ -27,7 +27,7 @@ This Ansible role automates the detection, revocation and deletion of unused Let Prevents multiple runs in one play by setting a `run_once_cleanup_certs` fact. - **Failure Notification** - Triggers `alert-core.cymais@cleanup-certs.cymais.service` on failure. + Triggers `alert-compose.cymais@cleanup-certs.cymais.service` on failure. ## Further Resources diff --git a/roles/cleanup-certs/meta/main.yml b/roles/cleanup-certs/meta/main.yml index d3d587e3..6f63b8ec 100644 --- a/roles/cleanup-certs/meta/main.yml +++ b/roles/cleanup-certs/meta/main.yml @@ -24,4 +24,4 @@ galaxy_info: documentation: "https://github.com/kevinveenbirkenbach/certreap#readme" dependencies: - - alert-core + - alert-compose diff --git a/roles/cleanup-certs/templates/cleanup-certs.service.j2 b/roles/cleanup-certs/templates/cleanup-certs.service.j2 index a1c5c95a..f2b28f52 100644 --- a/roles/cleanup-certs/templates/cleanup-certs.service.j2 +++ b/roles/cleanup-certs/templates/cleanup-certs.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Detect, revoke, and delete unused Let's Encrypt certificates based on active NGINX configuration files. -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/cleanup-disc-space/meta/main.yml b/roles/cleanup-disc-space/meta/main.yml index d7038e2a..d59e9ec6 100644 --- a/roles/cleanup-disc-space/meta/main.yml +++ b/roles/cleanup-disc-space/meta/main.yml @@ -22,5 +22,5 @@ galaxy_info: issue_tracker_url: "https://s.veen.world/cymaisissues" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core + - alert-compose - maintenance-lock diff --git a/roles/cleanup-disc-space/templates/cleanup-disc-space.service.j2 b/roles/cleanup-disc-space/templates/cleanup-disc-space.service.j2 index 09216316..014438f7 100644 --- a/roles/cleanup-disc-space/templates/cleanup-disc-space.service.j2 +++ b/roles/cleanup-disc-space/templates/cleanup-disc-space.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=freeing disc space -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/cleanup-failed-docker-backups/meta/main.yml b/roles/cleanup-failed-docker-backups/meta/main.yml index 59180d5d..51e1ca38 100644 --- a/roles/cleanup-failed-docker-backups/meta/main.yml +++ b/roles/cleanup-failed-docker-backups/meta/main.yml @@ -22,6 +22,6 @@ galaxy_info: issue_tracker_url: "https://s.veen.world/cymaisissues" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core + - alert-compose - maintenance-lock - backup-directory-validator diff --git a/roles/cleanup-failed-docker-backups/templates/cleanup-failed-docker-backups.service.j2 b/roles/cleanup-failed-docker-backups/templates/cleanup-failed-docker-backups.service.j2 index 08fa20d7..8f08cf4b 100644 --- a/roles/cleanup-failed-docker-backups/templates/cleanup-failed-docker-backups.service.j2 +++ b/roles/cleanup-failed-docker-backups/templates/cleanup-failed-docker-backups.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Cleaning up failed docker volume backups -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/driver-msi-keyboard-color/meta/main.yml b/roles/driver-msi-keyboard-color/meta/main.yml index f0b45b97..e3e43b32 100644 --- a/roles/driver-msi-keyboard-color/meta/main.yml +++ b/roles/driver-msi-keyboard-color/meta/main.yml @@ -9,4 +9,4 @@ galaxy_info: - all dependencies: - generic-aur-helper - - alert-core + - alert-compose diff --git a/roles/driver-msi-keyboard-color/templates/keyboard-color.service.j2 b/roles/driver-msi-keyboard-color/templates/keyboard-color.service.j2 index 62e98a4f..b261dfc2 100644 --- a/roles/driver-msi-keyboard-color/templates/keyboard-color.service.j2 +++ b/roles/driver-msi-keyboard-color/templates/keyboard-color.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Keyboard Color Service -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/maintenance-btrfs-auto-balancer/README.md b/roles/maintenance-btrfs-auto-balancer/README.md index 5162d988..af29560c 100644 --- a/roles/maintenance-btrfs-auto-balancer/README.md +++ b/roles/maintenance-btrfs-auto-balancer/README.md @@ -21,4 +21,4 @@ The primary purpose of this role is to maintain optimal performance of Btrfs fil - **Repository Cloning:** Automatically fetches the latest auto-btrfs-balancer repository. - **Service Configuration:** Sets up a systemd service for running the balancing script. - **Timer Integration:** Schedules the balancing process via a systemd timer. -- **Error Notification:** Notifies on failure using alert-core. +- **Error Notification:** Notifies on failure using alert-compose. diff --git a/roles/maintenance-btrfs-auto-balancer/meta/main.yml b/roles/maintenance-btrfs-auto-balancer/meta/main.yml index faba1140..8653abd9 100644 --- a/roles/maintenance-btrfs-auto-balancer/meta/main.yml +++ b/roles/maintenance-btrfs-auto-balancer/meta/main.yml @@ -22,4 +22,4 @@ galaxy_info: issue_tracker_url: "https://s.veen.world/cymaisissues" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core + - alert-compose diff --git a/roles/maintenance-btrfs-auto-balancer/templates/maintenance-btrfs-auto-balancer.service.j2 b/roles/maintenance-btrfs-auto-balancer/templates/maintenance-btrfs-auto-balancer.service.j2 index daf7e19d..1bb8a49a 100644 --- a/roles/maintenance-btrfs-auto-balancer/templates/maintenance-btrfs-auto-balancer.service.j2 +++ b/roles/maintenance-btrfs-auto-balancer/templates/maintenance-btrfs-auto-balancer.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=auto balance btrfs -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/maintenance-docker-heal/templates/maintenance-docker-heal.service.j2 b/roles/maintenance-docker-heal/templates/maintenance-docker-heal.service.j2 index 6e7db439..fa5c32b6 100644 --- a/roles/maintenance-docker-heal/templates/maintenance-docker-heal.service.j2 +++ b/roles/maintenance-docker-heal/templates/maintenance-docker-heal.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=restart unhealthy docker containers -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/maintenance-docker-restart/templates/maintenance-docker-restart.service.j2 b/roles/maintenance-docker-restart/templates/maintenance-docker-restart.service.j2 index e4a0148d..fb4cc579 100644 --- a/roles/maintenance-docker-restart/templates/maintenance-docker-restart.service.j2 +++ b/roles/maintenance-docker-restart/templates/maintenance-docker-restart.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Restart Docker Instances -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/maintenance-docker-storage-optimizer/templates/maintenance-docker-storage-optimizer.service.j2 b/roles/maintenance-docker-storage-optimizer/templates/maintenance-docker-storage-optimizer.service.j2 index d22d17cf..a159aef1 100644 --- a/roles/maintenance-docker-storage-optimizer/templates/maintenance-docker-storage-optimizer.service.j2 +++ b/roles/maintenance-docker-storage-optimizer/templates/maintenance-docker-storage-optimizer.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Optimize storage paths -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/monitor-bot-btrfs/README.md b/roles/monitor-bot-btrfs/README.md index 2103f0da..5cde1191 100644 --- a/roles/monitor-bot-btrfs/README.md +++ b/roles/monitor-bot-btrfs/README.md @@ -7,10 +7,10 @@ Checks the health of all mounted Btrfs filesystems by inspecting device error co - Iterates over every Btrfs filesystem. - Runs `btrfs device stats` and alerts if any error counters are non-zero. - Hooks into systemd and a timer for regular checks. -- On failure, calls `alert-core.cymais@…` for notification. +- On failure, calls `alert-compose.cymais@…` for notification. ## Usage Just include this role in your playbook; it will: 1. Deploy a small shell script under `{{ path_administrator_scripts }}/monitor-bot-btrfs/`. 2. Install a `.service` and `.timer` unit. -3. Send alerts via `alert-core` if any filesystem shows errors. +3. Send alerts via `alert-compose` if any filesystem shows errors. diff --git a/roles/monitor-bot-btrfs/meta/main.yml b/roles/monitor-bot-btrfs/meta/main.yml index f6dddd8b..2ccbbac5 100644 --- a/roles/monitor-bot-btrfs/meta/main.yml +++ b/roles/monitor-bot-btrfs/meta/main.yml @@ -21,4 +21,4 @@ galaxy_info: repository: "https://s.veen.world/cymais" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core + - alert-compose diff --git a/roles/monitor-bot-btrfs/templates/monitor-bot-btrfs.service.j2 b/roles/monitor-bot-btrfs/templates/monitor-bot-btrfs.service.j2 index ed0cc5b9..b510f6db 100644 --- a/roles/monitor-bot-btrfs/templates/monitor-bot-btrfs.service.j2 +++ b/roles/monitor-bot-btrfs/templates/monitor-bot-btrfs.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Check btrfs status -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/monitor-bot-csp/README.md b/roles/monitor-bot-csp/README.md index f9c3ae85..564d6fc1 100644 --- a/roles/monitor-bot-csp/README.md +++ b/roles/monitor-bot-csp/README.md @@ -13,7 +13,7 @@ Designed for Archlinux systems, this role periodically checks whether web resour - **CSP Resource Validation:** Uses Puppeteer to simulate browser requests and detect blocked resources. - **Domain Extraction:** Parses all `.conf` files in the NGINX config folder to determine the list of domains to check. - **Automated Execution:** Registers a systemd service and timer for recurring health checks. -- **Error Notification:** Integrates with `alert-core` for alerting on failure. +- **Error Notification:** Integrates with `alert-compose` for alerting on failure. ## License diff --git a/roles/monitor-bot-csp/meta/main.yml b/roles/monitor-bot-csp/meta/main.yml index 65a6bda6..212026d3 100644 --- a/roles/monitor-bot-csp/meta/main.yml +++ b/roles/monitor-bot-csp/meta/main.yml @@ -24,4 +24,4 @@ galaxy_info: issue_tracker_url: "https://s.veen.world/cymaisissues" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core \ No newline at end of file + - alert-compose \ No newline at end of file diff --git a/roles/monitor-bot-csp/templates/monitor-bot-csp.service.j2 b/roles/monitor-bot-csp/templates/monitor-bot-csp.service.j2 index b3fa553b..a3f12771 100644 --- a/roles/monitor-bot-csp/templates/monitor-bot-csp.service.j2 +++ b/roles/monitor-bot-csp/templates/monitor-bot-csp.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Check for CSP-blocked resources via Puppeteer -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/monitor-bot-disc-space/README.md b/roles/monitor-bot-disc-space/README.md index 2b5eb7e5..cc356a35 100644 --- a/roles/monitor-bot-disc-space/README.md +++ b/roles/monitor-bot-disc-space/README.md @@ -6,5 +6,5 @@ Monitors disk-space usage and alerts if any filesystem usage exceeds your define ## Features - Uses `df` to gather current usage. - Compares against `size_percent_disc_space_warning` threshold. -- Sends failure alerts via `alert-core`. +- Sends failure alerts via `alert-compose`. - Runs on a configurable systemd timer. diff --git a/roles/monitor-bot-disc-space/meta/main.yml b/roles/monitor-bot-disc-space/meta/main.yml index 87aa316c..5c803821 100644 --- a/roles/monitor-bot-disc-space/meta/main.yml +++ b/roles/monitor-bot-disc-space/meta/main.yml @@ -21,4 +21,4 @@ galaxy_info: repository: "https://s.veen.world/cymais" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core + - alert-compose diff --git a/roles/monitor-bot-disc-space/templates/monitor-bot-disc-space.service.j2 b/roles/monitor-bot-disc-space/templates/monitor-bot-disc-space.service.j2 index 47336e01..0f71d360 100644 --- a/roles/monitor-bot-disc-space/templates/monitor-bot-disc-space.service.j2 +++ b/roles/monitor-bot-disc-space/templates/monitor-bot-disc-space.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=checking disc space -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/monitor-bot-docker-container/README.md b/roles/monitor-bot-docker-container/README.md index ae59c05f..49a4bc4b 100644 --- a/roles/monitor-bot-docker-container/README.md +++ b/roles/monitor-bot-docker-container/README.md @@ -18,4 +18,4 @@ This Ansible role is designed to ensure the health of Docker containers running To use this role, include it in your playbook and set the `path_administrator_scripts` variable to the desired path for the health check scripts. -Ensure that the `alert-core` dependency is satisfied for error notifications. \ No newline at end of file +Ensure that the `alert-compose` dependency is satisfied for error notifications. \ No newline at end of file diff --git a/roles/monitor-bot-docker-container/meta/main.yml b/roles/monitor-bot-docker-container/meta/main.yml index 97d55276..509202e8 100644 --- a/roles/monitor-bot-docker-container/meta/main.yml +++ b/roles/monitor-bot-docker-container/meta/main.yml @@ -21,4 +21,4 @@ galaxy_info: repository: "https://s.veen.world/cymais" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core + - alert-compose diff --git a/roles/monitor-bot-docker-container/templates/monitor-bot-docker-container.service.j2 b/roles/monitor-bot-docker-container/templates/monitor-bot-docker-container.service.j2 index 924f8829..7828cc57 100644 --- a/roles/monitor-bot-docker-container/templates/monitor-bot-docker-container.service.j2 +++ b/roles/monitor-bot-docker-container/templates/monitor-bot-docker-container.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Checking docker health -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/monitor-bot-docker-volumes/README.md b/roles/monitor-bot-docker-volumes/README.md index bb54c99b..0e753720 100644 --- a/roles/monitor-bot-docker-volumes/README.md +++ b/roles/monitor-bot-docker-volumes/README.md @@ -18,7 +18,7 @@ This role checks for anonymous Docker volumes that are not bound to a container Include this role in your playbook and set the `path_administrator_scripts` variable to determine where the health check scripts should reside. Define `whitelisted_anonymous_volumes` in `vars/main.yml` with an array of volume IDs that should be ignored by the health check. -Ensure that the `alert-core` dependency is satisfied for error notifications. +Ensure that the `alert-compose` dependency is satisfied for error notifications. ## Created with AI This script was created with the help of AI. The full conversation you find [here](https://chat.openai.com/share/1fa829f1-f001-4111-b1d4-1b2e3d583da2). diff --git a/roles/monitor-bot-docker-volumes/meta/main.yml b/roles/monitor-bot-docker-volumes/meta/main.yml index e2ac7bb4..1eb3c292 100644 --- a/roles/monitor-bot-docker-volumes/meta/main.yml +++ b/roles/monitor-bot-docker-volumes/meta/main.yml @@ -21,4 +21,4 @@ galaxy_info: repository: "https://s.veen.world/cymais" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core + - alert-compose diff --git a/roles/monitor-bot-docker-volumes/templates/monitor-bot-docker-volumes.service.j2 b/roles/monitor-bot-docker-volumes/templates/monitor-bot-docker-volumes.service.j2 index 8a2a0560..4894024a 100644 --- a/roles/monitor-bot-docker-volumes/templates/monitor-bot-docker-volumes.service.j2 +++ b/roles/monitor-bot-docker-volumes/templates/monitor-bot-docker-volumes.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Checking docker health -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/monitor-bot-journalctl/README.md b/roles/monitor-bot-journalctl/README.md index 1bc50779..3678ee47 100644 --- a/roles/monitor-bot-journalctl/README.md +++ b/roles/monitor-bot-journalctl/README.md @@ -7,7 +7,7 @@ Scans `journalctl` over the last day for “error” entries and alerts if any a - Runs `journalctl --since '1 day ago' | grep -i error`. - Exits non-zero on matches. - Scheduled via systemd timer. -- Alerts via `alert-core` on detection. +- Alerts via `alert-compose` on detection. ## Usage Include the role; set `on_calendar_health_journalctl` for your preferred schedule. diff --git a/roles/monitor-bot-journalctl/meta/main.yml b/roles/monitor-bot-journalctl/meta/main.yml index 2fffa760..eee45595 100644 --- a/roles/monitor-bot-journalctl/meta/main.yml +++ b/roles/monitor-bot-journalctl/meta/main.yml @@ -21,4 +21,4 @@ galaxy_info: repository: "https://s.veen.world/cymais" documentation: "https://s.veen.world/cymais" dependencies: - - alert-core + - alert-compose diff --git a/roles/monitor-bot-journalctl/templates/monitor-bot-journalctl.service.j2 b/roles/monitor-bot-journalctl/templates/monitor-bot-journalctl.service.j2 index c0c983dd..0cbdaa37 100644 --- a/roles/monitor-bot-journalctl/templates/monitor-bot-journalctl.service.j2 +++ b/roles/monitor-bot-journalctl/templates/monitor-bot-journalctl.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=checking journalctl health -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/monitor-bot-webserver/README.md b/roles/monitor-bot-webserver/README.md index 72d0cbe0..d6e74229 100644 --- a/roles/monitor-bot-webserver/README.md +++ b/roles/monitor-bot-webserver/README.md @@ -6,7 +6,7 @@ Verifies that each of your Nginx‐served domains returns an expected HTTP statu ## Features - Scans your `nginx` server block `.conf` files for domains. - HEAD-requests each domain and compares against per-domain expected codes. -- Reports any mismatches via `alert-core`. +- Reports any mismatches via `alert-compose`. - Scheduled via a systemd timer for periodic health sweeps. ## Usage diff --git a/roles/monitor-bot-webserver/meta/main.yml b/roles/monitor-bot-webserver/meta/main.yml index 7c4f5a7e..c70b1242 100644 --- a/roles/monitor-bot-webserver/meta/main.yml +++ b/roles/monitor-bot-webserver/meta/main.yml @@ -23,4 +23,4 @@ galaxy_info: documentation: "https://s.veen.world/cymais" dependencies: - generic-python-pip - - alert-core + - alert-compose diff --git a/roles/monitor-bot-webserver/templates/monitor-bot-webserver.service.j2 b/roles/monitor-bot-webserver/templates/monitor-bot-webserver.service.j2 index 506a8fb1..e6d11e12 100644 --- a/roles/monitor-bot-webserver/templates/monitor-bot-webserver.service.j2 +++ b/roles/monitor-bot-webserver/templates/monitor-bot-webserver.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Check nginx configuration status -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/update-docker/templates/update-docker.service.j2 b/roles/update-docker/templates/update-docker.service.j2 index fca51e70..b6f0afe8 100644 --- a/roles/update-docker/templates/update-docker.service.j2 +++ b/roles/update-docker/templates/update-docker.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Updates Docker Instances -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/webserver-proxy-tls-deploy/README.md b/roles/webserver-proxy-tls-deploy/README.md index f5131fed..98612b04 100644 --- a/roles/webserver-proxy-tls-deploy/README.md +++ b/roles/webserver-proxy-tls-deploy/README.md @@ -13,7 +13,7 @@ This Ansible role simplifies the deployment of **Let's Encrypt certificates** in - Automatically **reloads or restarts Nginx services** when certificates are updated. - **Configures and manages a `systemd` service** for automated certificate deployment. - **Includes a `systemd` timer** for scheduled renewals. -- **Handles dependent services** like `alert-core`. +- **Handles dependent services** like `alert-compose`. --- diff --git a/roles/webserver-proxy-tls-deploy/meta/main.yml b/roles/webserver-proxy-tls-deploy/meta/main.yml index 0ce35b15..82ffe668 100644 --- a/roles/webserver-proxy-tls-deploy/meta/main.yml +++ b/roles/webserver-proxy-tls-deploy/meta/main.yml @@ -1,2 +1,2 @@ dependencies: -- alert-core +- alert-compose diff --git a/roles/webserver-proxy-tls-deploy/templates/webserver-proxy-tls-deploy.service.j2 b/roles/webserver-proxy-tls-deploy/templates/webserver-proxy-tls-deploy.service.j2 index 6af9d7fd..bab9ca7c 100644 --- a/roles/webserver-proxy-tls-deploy/templates/webserver-proxy-tls-deploy.service.j2 +++ b/roles/webserver-proxy-tls-deploy/templates/webserver-proxy-tls-deploy.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Let's Encrypt deploy to {{docker_compose.directories.instance}} -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot diff --git a/roles/webserver-tls-renew/README.md b/roles/webserver-tls-renew/README.md index f1958856..65ba27aa 100644 --- a/roles/webserver-tls-renew/README.md +++ b/roles/webserver-tls-renew/README.md @@ -11,7 +11,7 @@ Optimized for Archlinux systems, this role installs the `certbot-nginx` package, ### Key Features - **Automatic Renewal:** Schedules unattended certificate renewals using generic-timers. - **Seamless Nginx Reload:** Reloads the Nginx service automatically after successful renewals. -- **Systemd Integration:** Manages renewal operations reliably with `systemd` and `alert-core`. +- **Systemd Integration:** Manages renewal operations reliably with `systemd` and `alert-compose`. - **Quiet and Safe Operation:** Uses `--quiet` and `--agree-tos` flags to ensure non-interactive renewals. ## 🎯 Purpose @@ -23,7 +23,7 @@ The Nginx Certbot Automation role ensures that Let's Encrypt SSL/TLS certificate - **Certbot-Nginx Package Installation:** Installs required certbot plugins for Nginx. - **Custom Systemd Service:** Configures a lightweight, dedicated renewal service. - **Timer Setup:** Uses generic-timer to run certbot renewals periodically. -- **Failure Notification:** Integrated with `alert-core` for alerting on failures. +- **Failure Notification:** Integrated with `alert-compose` for alerting on failures. ## 🔗 Learn More diff --git a/roles/webserver-tls-renew/meta/main.yml b/roles/webserver-tls-renew/meta/main.yml index ba502904..7743d17a 100644 --- a/roles/webserver-tls-renew/meta/main.yml +++ b/roles/webserver-tls-renew/meta/main.yml @@ -29,5 +29,5 @@ galaxy_info: dependencies: - generic-certbot - webserver-core - - alert-core + - alert-compose - cleanup-certs diff --git a/roles/webserver-tls-renew/templates/webserver-tls-renew.service.j2 b/roles/webserver-tls-renew/templates/webserver-tls-renew.service.j2 index 70253d93..62fdcb6e 100644 --- a/roles/webserver-tls-renew/templates/webserver-tls-renew.service.j2 +++ b/roles/webserver-tls-renew/templates/webserver-tls-renew.service.j2 @@ -1,6 +1,6 @@ [Unit] Description=Let's Encrypt renewal -OnFailure=alert-core.cymais@%n.service +OnFailure=alert-compose.cymais@%n.service [Service] Type=oneshot