Переглянути джерело

Add license information to a role

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
pull/4143/head
Suguru Hirahara 1 рік тому
джерело
коміт
e1c03dc7ff
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: E4F9743DAB4B7B75
10 змінених файлів з 61 додано та 0 видалено
  1. +7
    -0
      docs/configuring-playbook-appservice-draupnir-for-all.md
  2. +9
    -0
      docs/configuring-playbook-bot-draupnir.md
  3. +6
    -0
      roles/custom/matrix-bot-draupnir/defaults/main.yml
  4. +5
    -0
      roles/custom/matrix-bot-draupnir/tasks/main.yml
  5. +7
    -0
      roles/custom/matrix-bot-draupnir/tasks/setup_install.yml
  6. +4
    -0
      roles/custom/matrix-bot-draupnir/tasks/setup_uninstall.yml
  7. +5
    -0
      roles/custom/matrix-bot-draupnir/tasks/validate_config.yml
  8. +6
    -0
      roles/custom/matrix-bot-draupnir/templates/labels.j2
  9. +8
    -0
      roles/custom/matrix-bot-draupnir/templates/production.yaml.j2
  10. +4
    -0
      roles/custom/matrix-bot-draupnir/templates/systemd/matrix-bot-draupnir.service.j2.license

+ 7
- 0
docs/configuring-playbook-appservice-draupnir-for-all.md Переглянути файл

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

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

# Setting up Draupnir for All/D4A (optional)

The playbook can install and configure the [Draupnir](https://github.com/the-draupnir-project/Draupnir) moderation tool for you in appservice mode.


+ 9
- 0
docs/configuring-playbook-bot-draupnir.md Переглянути файл

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

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

# Setting up Draupnir (optional)

The playbook can install and configure the [Draupnir](https://github.com/the-draupnir-project/Draupnir) moderation bot for you.


+ 6
- 0
roles/custom/matrix-bot-draupnir/defaults/main.yml Переглянути файл

@@ -1,3 +1,9 @@
# SPDX-FileCopyrightText: 2023 - 2024 MDAD project contributors
# SPDX-FileCopyrightText: 2023 Samuel Meenzen
# SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---
# A moderation tool for Matrix
# Project source code URL: https://github.com/the-draupnir-project/Draupnir


+ 5
- 0
roles/custom/matrix-bot-draupnir/tasks/main.yml Переглянути файл

@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2023 MDAD project contributors
# SPDX-FileCopyrightText: 2023 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- tags:


+ 7
- 0
roles/custom/matrix-bot-draupnir/tasks/setup_install.yml Переглянути файл

@@ -1,3 +1,10 @@
# SPDX-FileCopyrightText: 2023 - 2024 MDAD project contributors
# SPDX-FileCopyrightText: 2024 David Mehren
# SPDX-FileCopyrightText: 2024 Slavi Pantaleev
# SPDX-FileCopyrightText: 2024 Suguru Hirahara
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- ansible.builtin.set_fact:


+ 4
- 0
roles/custom/matrix-bot-draupnir/tasks/setup_uninstall.yml Переглянути файл

@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2023 MDAD project contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- name: Check existence of matrix-bot-draupnir service


+ 5
- 0
roles/custom/matrix-bot-draupnir/tasks/validate_config.yml Переглянути файл

@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2023 - 2025 MDAD project contributors
# SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- name: Fail if required matrix-bot-draupnir variables are undefined


+ 6
- 0
roles/custom/matrix-bot-draupnir/templates/labels.j2 Переглянути файл

@@ -1,3 +1,9 @@
{#
SPDX-FileCopyrightText: 2024 MDAD project contributors

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

{% if matrix_bot_draupnir_container_labels_traefik_enabled %}
traefik.enable=true



+ 8
- 0
roles/custom/matrix-bot-draupnir/templates/production.yaml.j2 Переглянути файл

@@ -1,3 +1,11 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 MDAD project contributors
SPDX-FileCopyrightText: 2024 Slavi Pantaleev
SPDX-FileCopyrightText: 2024 Suguru Hirahara

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

# Endpoint URL that Draupnir uses to interact with the Matrix homeserver (client-server API),
homeserverUrl: {{ matrix_bot_draupnir_homeserver_url | to_json }}



+ 4
- 0
roles/custom/matrix-bot-draupnir/templates/systemd/matrix-bot-draupnir.service.j2.license Переглянути файл

@@ -0,0 +1,4 @@
SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev
SPDX-FileCopyrightText: 2024 MDAD project contributors

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

Завантаження…
Відмінити
Зберегти