Skip to content

Commit

Permalink
Add Hookshot validation task to ensure queue settings are set when en…
Browse files Browse the repository at this point in the history
…cryption is enabled
  • Loading branch information
spantaleev committed Dec 16, 2023
1 parent 8c531b7 commit 6bdf7a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/custom/matrix-bridge-hookshot/tasks/validate_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@
with_items:
- "matrix_hookshot_provisioning_secret"

- name: Fail if no Redis queue enabled when Hookshot encryption is enabled
ansible.builtin.fail:
msg: >-
You need to define a required configuration setting (`{{ item }}`) to enable Hookshot encryption.
when: "matrix_hookshot_experimental_encryption_enabled and matrix_hookshot_queue_host == ''"

- name: (Deprecation) Catch and report old metrics usage
ansible.builtin.fail:
msg: >-
Expand Down

0 comments on commit 6bdf7a9

Please sign in to comment.