Browse Source

Merge pull request #4119 from luixxiul/patch-2

Add license information to files for two components
pull/4120/head
Slavi Pantaleev 1 year ago
committed by GitHub
parent
commit
2200e42a38
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
16 changed files with 76 additions and 0 deletions
  1. +8
    -0
      docs/configuring-playbook-alertmanager-receiver.md
  2. +7
    -0
      docs/configuring-playbook-appservice-double-puppet.md
  3. +5
    -0
      roles/custom/matrix-alertmanager-receiver/defaults/main.yml
  4. +5
    -0
      roles/custom/matrix-alertmanager-receiver/tasks/install.yml
  5. +4
    -0
      roles/custom/matrix-alertmanager-receiver/tasks/main.yml
  6. +4
    -0
      roles/custom/matrix-alertmanager-receiver/tasks/uninstall.yml
  7. +4
    -0
      roles/custom/matrix-alertmanager-receiver/tasks/validate_config.yml
  8. +4
    -0
      roles/custom/matrix-alertmanager-receiver/templates/config.yaml.j2.license
  9. +6
    -0
      roles/custom/matrix-alertmanager-receiver/templates/labels.j2
  10. +3
    -0
      roles/custom/matrix-alertmanager-receiver/templates/systemd/matrix-alertmanager-receiver.service.j2.license
  11. +4
    -0
      roles/custom/matrix-appservice-double-puppet/defaults/main.yml
  12. +4
    -0
      roles/custom/matrix-appservice-double-puppet/tasks/install.yml
  13. +4
    -0
      roles/custom/matrix-appservice-double-puppet/tasks/main.yml
  14. +4
    -0
      roles/custom/matrix-appservice-double-puppet/tasks/uninstall.yml
  15. +4
    -0
      roles/custom/matrix-appservice-double-puppet/tasks/validate_config.yml
  16. +6
    -0
      roles/custom/matrix-appservice-double-puppet/templates/registration.yaml.j2

+ 8
- 0
docs/configuring-playbook-alertmanager-receiver.md View File

@@ -1,3 +1,11 @@
<!--
SPDX-FileCopyrightText: 2024 Slavi Pantaleev
SPDX-FileCopyrightText: 2025 MDAD project contributors
SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara

SPDX-License-Identifier: AGPL-3.0-or-later
-->

# Setting up Prometheus Alertmanager integration via matrix-alertmanager-receiver (optional)

The playbook can install and configure the [matrix-alertmanager-receiver](https://github.com/metio/matrix-alertmanager-receiver) service for you. It's a [client](https://prometheus.io/docs/alerting/latest/clients/) for Prometheus' [Alertmanager](https://prometheus.io/docs/alerting/latest/alertmanager/), allowing you to deliver alerts to Matrix rooms.


+ 7
- 0
docs/configuring-playbook-appservice-double-puppet.md View File

@@ -1,3 +1,10 @@
<!--
SPDX-FileCopyrightText: 2024 Slavi Pantaleev
SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara

SPDX-License-Identifier: AGPL-3.0-or-later
-->

# Setting up Appservice Double Puppet (optional)

The playbook can install and configure the Appservice Double Puppet service for you. It is a homeserver appservice through which bridges (and potentially other services) can impersonate any user on the homeserver.


+ 5
- 0
roles/custom/matrix-alertmanager-receiver/defaults/main.yml View File

@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
# SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

# matrix-alertmanager-receiver is a service which receives webhook payloads from Prometheus' Alertmanager and forwards them to a Matrix room.


+ 5
- 0
roles/custom/matrix-alertmanager-receiver/tasks/install.yml View File

@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2024 David Mehren
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- name: Ensure matrix-alertmanager-receiver paths exist


+ 4
- 0
roles/custom/matrix-alertmanager-receiver/tasks/main.yml View File

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- tags:


+ 4
- 0
roles/custom/matrix-alertmanager-receiver/tasks/uninstall.yml View File

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- name: Check existence of matrix-alertmanager-receiver service


+ 4
- 0
roles/custom/matrix-alertmanager-receiver/tasks/validate_config.yml View File

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---
- name: Fail if required matrix-alertmanager-receiver settings not defined
ansible.builtin.fail:


+ 4
- 0
roles/custom/matrix-alertmanager-receiver/templates/config.yaml.j2.license View File

@@ -0,0 +1,4 @@
SPDX-FileCopyrightText: 2024 Slavi Pantaleev
SPDX-FileCopyrightText: 2024 Suguru Hirahara

SPDX-License-Identifier: AGPL-3.0-or-later

+ 6
- 0
roles/custom/matrix-alertmanager-receiver/templates/labels.j2 View File

@@ -1,3 +1,9 @@
{#
SPDX-FileCopyrightText: 2024 Slavi Pantaleev

SPDX-License-Identifier: AGPL-3.0-or-later
#}

{% if matrix_alertmanager_receiver_container_labels_traefik_enabled %}
traefik.enable=true



+ 3
- 0
roles/custom/matrix-alertmanager-receiver/templates/systemd/matrix-alertmanager-receiver.service.j2.license View File

@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev

SPDX-License-Identifier: AGPL-3.0-or-later

+ 4
- 0
roles/custom/matrix-appservice-double-puppet/defaults/main.yml View File

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

matrix_appservice_double_puppet_enabled: true


+ 4
- 0
roles/custom/matrix-appservice-double-puppet/tasks/install.yml View File

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- name: Ensure matrix-appservice-double-puppet paths exist


+ 4
- 0
roles/custom/matrix-appservice-double-puppet/tasks/main.yml View File

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Suguru Hirahara
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- tags:


+ 4
- 0
roles/custom/matrix-appservice-double-puppet/tasks/uninstall.yml View File

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- name: Ensure matrix-appservice-double-puppet paths don't exist


+ 4
- 0
roles/custom/matrix-appservice-double-puppet/tasks/validate_config.yml View File

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---
- name: Fail if required matrix-appservice-double-puppet settings not defined
ansible.builtin.fail:


+ 6
- 0
roles/custom/matrix-appservice-double-puppet/templates/registration.yaml.j2 View File

@@ -1,3 +1,9 @@
{#
SPDX-FileCopyrightText: 2024 Slavi Pantaleev

SPDX-License-Identifier: AGPL-3.0-or-later
#}

# The ID doesn't really matter, put whatever you want.
id: {{ matrix_appservice_double_puppet_registration_id | to_json }}
# The URL is intentionally left empty (null), as the homeserver shouldn't


Loading…
Cancel
Save