Просмотр исходного кода

Merge pull request #4119 from luixxiul/patch-2

Add license information to files for two components
pull/4120/head
Slavi Pantaleev 1 год назад
committed by GitHub
Родитель
Сommit
2200e42a38
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
16 измененных файлов: 76 добавлений и 0 удалений
  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 Просмотреть файл

@@ -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) # 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. 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 Просмотреть файл

@@ -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) # 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. 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 Просмотреть файл

@@ -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. # 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 Просмотреть файл

@@ -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 - name: Ensure matrix-alertmanager-receiver paths exist


+ 4
- 0
roles/custom/matrix-alertmanager-receiver/tasks/main.yml Просмотреть файл

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

--- ---


- tags: - tags:


+ 4
- 0
roles/custom/matrix-alertmanager-receiver/tasks/uninstall.yml Просмотреть файл

@@ -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 - name: Check existence of matrix-alertmanager-receiver service


+ 4
- 0
roles/custom/matrix-alertmanager-receiver/tasks/validate_config.yml Просмотреть файл

@@ -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 - name: Fail if required matrix-alertmanager-receiver settings not defined
ansible.builtin.fail: ansible.builtin.fail:


+ 4
- 0
roles/custom/matrix-alertmanager-receiver/templates/config.yaml.j2.license Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 %} {% if matrix_alertmanager_receiver_container_labels_traefik_enabled %}
traefik.enable=true traefik.enable=true




+ 3
- 0
roles/custom/matrix-alertmanager-receiver/templates/systemd/matrix-alertmanager-receiver.service.j2.license Просмотреть файл

@@ -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 Просмотреть файл

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

--- ---


matrix_appservice_double_puppet_enabled: true matrix_appservice_double_puppet_enabled: true


+ 4
- 0
roles/custom/matrix-appservice-double-puppet/tasks/install.yml Просмотреть файл

@@ -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 - name: Ensure matrix-appservice-double-puppet paths exist


+ 4
- 0
roles/custom/matrix-appservice-double-puppet/tasks/main.yml Просмотреть файл

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

--- ---


- tags: - tags:


+ 4
- 0
roles/custom/matrix-appservice-double-puppet/tasks/uninstall.yml Просмотреть файл

@@ -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 - name: Ensure matrix-appservice-double-puppet paths don't exist


+ 4
- 0
roles/custom/matrix-appservice-double-puppet/tasks/validate_config.yml Просмотреть файл

@@ -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 - name: Fail if required matrix-appservice-double-puppet settings not defined
ansible.builtin.fail: ansible.builtin.fail:


+ 6
- 0
roles/custom/matrix-appservice-double-puppet/templates/registration.yaml.j2 Просмотреть файл

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


Загрузка…
Отмена
Сохранить