Procházet zdrojové kódy

Change D4A Room State Backing Store variable name and fix SPDX Headers

pull/4166/head
Catalan Lover před 1 rokem
rodič
revize
64572f8388
4 změnil soubory, kde provedl 8 přidání a 4 odebrání
  1. +2
    -1
      roles/custom/matrix-appservice-draupnir-for-all/defaults/main.yml
  2. +1
    -0
      roles/custom/matrix-appservice-draupnir-for-all/tasks/validate_config.yml
  3. +3
    -2
      roles/custom/matrix-appservice-draupnir-for-all/templates/production-appservice.yaml.j2
  4. +2
    -1
      roles/custom/matrix-appservice-draupnir-for-all/templates/production-bots.yaml.j2

+ 2
- 1
roles/custom/matrix-appservice-draupnir-for-all/defaults/main.yml Zobrazit soubor

@@ -1,3 +1,4 @@
# SPDX-FileCopyrightText: 2024 MDAD project contributors
# SPDX-FileCopyrightText: 2024 - 2025 Catalan Lover <catalanlover@protonmail.com> # SPDX-FileCopyrightText: 2024 - 2025 Catalan Lover <catalanlover@protonmail.com>
# SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
# SPDX-FileCopyrightText: 2024 Suguru Hirahara # SPDX-FileCopyrightText: 2024 Suguru Hirahara
@@ -61,7 +62,7 @@ matrix_appservice_draupnir_for_all_master_control_room_alias: ""
# Controls if the room state backing store is activated. # 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. # 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. # 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_config_roomStateBackingStore_enabled: false # noqa var-naming


matrix_appservice_draupnir_for_all_database_username: matrix_appservice_draupnir_for_all 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_password: 'some-passsword'


+ 1
- 0
roles/custom/matrix-appservice-draupnir-for-all/tasks/validate_config.yml Zobrazit soubor

@@ -22,3 +22,4 @@
when: "item.old in vars" when: "item.old in vars"
with_items: with_items:
- {'old': 'matrix_appservice_draupnir_for_all_docker_image_name_prefix', 'new': 'matrix_appservice_draupnir_for_all_docker_image_registry_prefix'} - {'old': 'matrix_appservice_draupnir_for_all_docker_image_name_prefix', 'new': 'matrix_appservice_draupnir_for_all_docker_image_registry_prefix'}
- {'old': 'matrix_appservice_draupnir_for_all_enable_room_state_backing_store', 'new': 'matrix_appservice_draupnir_for_all_config_roomStateBackingStore_enabled'}

+ 3
- 2
roles/custom/matrix-appservice-draupnir-for-all/templates/production-appservice.yaml.j2 Zobrazit soubor

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


SPDX-License-Identifier: AGPL-3.0-or-later SPDX-License-Identifier: AGPL-3.0-or-later
@@ -28,4 +29,4 @@ webAPI:
dataPath: "/data" dataPath: "/data"


roomStateBackingStore: roomStateBackingStore:
enabled: {{ matrix_appservice_draupnir_for_all_enable_room_state_backing_store }}
enabled: {{ matrix_appservice_draupnir_for_all_config_roomStateBackingStore_enabled | to_json }}

+ 2
- 1
roles/custom/matrix-appservice-draupnir-for-all/templates/production-bots.yaml.j2 Zobrazit soubor

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


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


Načítá se…
Zrušit
Uložit