Sfoglia il codice sorgente

Update D4A Configuration

D4A had some breaking config changes so this commit fixes them and gets us back into compliance with upstream. And since we run in a docker container we can use the /data/storage default.
pull/4166/head
Catalan Lover 1 anno fa
parent
commit
26f9c65cf3
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 649BCCF930C07F70
3 ha cambiato i file con 31 aggiunte e 3 eliminazioni
  1. +6
    -1
      roles/custom/matrix-appservice-draupnir-for-all/defaults/main.yml
  2. +7
    -1
      roles/custom/matrix-appservice-draupnir-for-all/templates/production-appservice.yaml.j2
  3. +18
    -1
      roles/custom/matrix-appservice-draupnir-for-all/templates/production-bots.yaml.j2

+ 6
- 1
roles/custom/matrix-appservice-draupnir-for-all/defaults/main.yml Vedi File

@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 - 2025 MDAD project contributors
# SPDX-FileCopyrightText: 2024 - 2025 Catalan Lover <catalanlover@protonmail.com>
# SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
# SPDX-FileCopyrightText: 2024 Suguru Hirahara
#
@@ -58,6 +58,11 @@ matrix_appservice_draupnir_for_all_master_control_room_alias: ""
# This should be a room alias - not a matrix.to URL.
# matrix_appservice_draupnir_for_all_management_policy_list_alias: ""

# Controls if the room state backing store is activated.
# Room state backing store makes restarts of the bot lightning fast as the bot does not suffer from amnesia.
# This config option has diminished improvements for bots on extremely fast homeservers or very very small bots on fast homeservers.
matrix_appservice_draupnir_for_all_enable_room_state_backing_store: "false"

matrix_appservice_draupnir_for_all_database_username: matrix_appservice_draupnir_for_all
matrix_appservice_draupnir_for_all_database_password: 'some-passsword'
matrix_appservice_draupnir_for_all_database_hostname: ''


+ 7
- 1
roles/custom/matrix-appservice-draupnir-for-all/templates/production-appservice.yaml.j2 Vedi File

@@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2024 MDAD project contributors
SPDX-FileCopyrightText: 2024-2025 Catalan Lover <catalanlover@protonmail.com>
SPDX-FileCopyrightText: 2024 Suguru Hirahara

SPDX-License-Identifier: AGPL-3.0-or-later
@@ -23,3 +23,9 @@ adminRoom: "{{ matrix_appservice_draupnir_for_all_master_control_room_alias }}"
# This is a web api that the widget connects to in order to interact with the appservice.
webAPI:
port: 9000

# The directory the bot should store various bits of information in
dataPath: "/data/storage"

roomStateBackingStore:
enabled: {{ matrix_appservice_draupnir_for_all_enable_room_state_backing_store }}

+ 18
- 1
roles/custom/matrix-appservice-draupnir-for-all/templates/production-bots.yaml.j2 Vedi File

@@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2024 MDAD project contributors
SPDX-FileCopyrightText: 2024-2025 Catalan Lover <catalanlover@protonmail.com>

SPDX-License-Identifier: AGPL-3.0-or-later
#}
@@ -73,3 +73,20 @@ commands:
- "brigading"
- "harassment"
- "disagreement"

# Safe mode provides recovery options for some failure modes when Draupnir
# fails to start. For example, if the bot fails to resolve a room alias in
# a watched list, or if the server has parted from a protected room and can't
# find a way back in. Safe mode will provide different options to recover from
# these. Such as unprotecting the room or unwatching the policy list.
# By default Draupnir will boot into safe mode only when the failure mode
# is recoverable.
# It may be desirable to prevent the bot from starting into safe mode if you have
# a pager system when Draupnir is down, as Draupnir could prevent your monitoring
# system from identifying a failure to start.
#safeMode:
# # The option for entering safe mode when Draupnir fails to start up.
# # - "RecoveryOnly" will only start the bot in safe mode when there are recovery options available. This is the default.
# # - "Never" will never start the bot in safe mode when Draupnir fails to start normally.
# # - "Always" will always start the bot in safe mode when Draupnir fails to start normally.
# bootOption: RecoveryOnly

Caricamento…
Annulla
Salva