Ver a proveniência

Apply the review

Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
pull/4695/head
Suguru Hirahara há 4 meses
ascendente
cometimento
6b21b03e71
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: E4F9743DAB4B7B75
7 ficheiros alterados com 14 adições e 14 eliminações
  1. +2
    -2
      docs/configuring-playbook-bridge-zulip.md
  2. +4
    -1
      group_vars/matrix_servers
  3. +1
    -4
      roles/custom/matrix-bridge-zulip/defaults/main.yml
  4. +3
    -3
      roles/custom/matrix-bridge-zulip/tasks/setup_install.yml
  5. +3
    -3
      roles/custom/matrix-bridge-zulip/tasks/setup_uninstall.yml
  6. +1
    -1
      roles/custom/matrix-bridge-zulip/templates/labels.j2
  7. +0
    -0
      roles/custom/matrix-bridge-zulip/templates/systemd/matrix-zulip-bridge.service.j2

+ 2
- 2
docs/configuring-playbook-bridge-zulip.md Ver ficheiro

@@ -25,7 +25,7 @@ To enable the Zulip bridge, add the following configuration to your `inventory/h
```yaml ```yaml
matrix_zulip_bridge_enabled: true matrix_zulip_bridge_enabled: true


# Setting the owner is optional as the first local user to DM `@matrixzulipbridge:example.com` will be made the owner.
# Setting the owner is optional as the first local user to DM `@zulipbridge:example.com` will be made the owner.
# If you are not using a local user you must set it as otherwise you can't DM it at all. # If you are not using a local user you must set it as otherwise you can't DM it at all.
matrix_zulip_bridge_owner: "@alice:{{ matrix_domain }}" matrix_zulip_bridge_owner: "@alice:{{ matrix_domain }}"
``` ```
@@ -69,7 +69,7 @@ The shortcut commands with the [`just` program](just.md) are also available: `ju


## Usage ## Usage


To use the bridge, you need to start a chat with `@matrixzulipbridge:example.com` (where `example.com` is your base domain, not the `matrix.` domain). If the bridge ignores you and a DM is not accepted then the owner setting may be wrong.
To use the bridge, you need to start a chat with `@zulipbridge:example.com` (where `example.com` is your base domain, not the `matrix.` domain). If the bridge ignores you and a DM is not accepted then the owner setting may be wrong.


If you encounter issues or feel lost you can join the project room at [#matrixzulipbridge:shema.lv](https://matrix.to/#/#matrixzulipbridge:shema.lv) for help. If you encounter issues or feel lost you can join the project room at [#matrixzulipbridge:shema.lv](https://matrix.to/#/#matrixzulipbridge:shema.lv) for help.




+ 4
- 1
group_vars/matrix_servers Ver ficheiro

@@ -343,7 +343,7 @@ devture_systemd_service_manager_services_list_auto: |
+ +
([{'name': 'matrix-hookshot.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'hookshot', 'bridge-hookshot']}] if matrix_hookshot_enabled else []) ([{'name': 'matrix-hookshot.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'hookshot', 'bridge-hookshot']}] if matrix_hookshot_enabled else [])
+ +
([{'name': 'matrix-bridge-zulip.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'matrixzulipbridge']}] if matrix_zulip_bridge_enabled else [])
([{'name': 'matrix-zulip-bridge.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'zulip']}] if matrix_zulip_bridge_enabled else [])
+ +
([{'name': 'matrix-mautrix-bluesky.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-bluesky']}] if matrix_mautrix_bluesky_enabled else []) ([{'name': 'matrix-mautrix-bluesky.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'mautrix-bluesky']}] if matrix_mautrix_bluesky_enabled else [])
+ +
@@ -2387,6 +2387,9 @@ matrix_zulip_bridge_enabled: false


matrix_zulip_bridge_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}" matrix_zulip_bridge_scheme: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}"


# Set this to your Matrix ID if you want to enforce the owner, otherwise first _local_ user becomes one
matrix_zulip_bridge_owner: "{{ matrix_admin if matrix_admin else '' }}"

matrix_zulip_bridge_systemd_required_services_list_auto: | matrix_zulip_bridge_systemd_required_services_list_auto: |
{{ {{
matrix_addons_homeserver_systemd_services_list matrix_addons_homeserver_systemd_services_list


+ 1
- 4
roles/custom/matrix-bridge-zulip/defaults/main.yml Ver ficheiro

@@ -26,9 +26,6 @@ matrix_zulip_bridge_docker_image_registry_prefix_upstream: "{{ matrix_zulip_brid
matrix_zulip_bridge_docker_image_registry_prefix_upstream_default: ghcr.io/ matrix_zulip_bridge_docker_image_registry_prefix_upstream_default: ghcr.io/
matrix_zulip_bridge_docker_image_force_pull: "{{ matrix_zulip_bridge_docker_image.endswith(':latest') }}" matrix_zulip_bridge_docker_image_force_pull: "{{ matrix_zulip_bridge_docker_image.endswith(':latest') }}"


# Set this to your Matrix ID if you want to enforce the owner, otherwise first _local_ user becomes one
matrix_zulip_bridge_owner: "{{ matrix_admin if matrix_admin else '' }}"

matrix_zulip_bridge_base_path: "{{ matrix_base_data_path }}/zulip" matrix_zulip_bridge_base_path: "{{ matrix_base_data_path }}/zulip"


matrix_zulip_bridge_container_network: "" matrix_zulip_bridge_container_network: ""
@@ -109,7 +106,7 @@ matrix_zulip_bridge_registration_yaml_bridge_zulip:
# Besides registration information, it contains configuration (see the Zulip bridge key). # Besides registration information, it contains configuration (see the Zulip bridge key).
matrix_zulip_bridge_registration_yaml: matrix_zulip_bridge_registration_yaml:
id: zulipbridge id: zulipbridge
url: http://matrix-bridge-zulip:{{ matrix_zulip_bridge_container_http_port }}
url: http://matrix-zulip-bridge:{{ matrix_zulip_bridge_container_http_port }}
as_token: "{{ matrix_zulip_bridge_appservice_token }}" as_token: "{{ matrix_zulip_bridge_appservice_token }}"
hs_token: "{{ matrix_zulip_bridge_homeserver_token }}" hs_token: "{{ matrix_zulip_bridge_homeserver_token }}"
rate_limited: false rate_limited: false


+ 3
- 3
roles/custom/matrix-bridge-zulip/tasks/setup_install.yml Ver ficheiro

@@ -55,8 +55,8 @@
driver: bridge driver: bridge
driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}" driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}"


- name: Ensure matrix-bridge-zulip.service installed
- name: Ensure matrix-zulip-bridge.service installed
ansible.builtin.template: ansible.builtin.template:
src: "{{ role_path }}/templates/systemd/matrix-bridge-zulip.service.j2"
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bridge-zulip.service"
src: "{{ role_path }}/templates/systemd/matrix-zulip-bridge.service.j2"
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-zulip-bridge.service"
mode: "0644" mode: "0644"

+ 3
- 3
roles/custom/matrix-bridge-zulip/tasks/setup_uninstall.yml Ver ficheiro

@@ -8,7 +8,7 @@
--- ---
- name: Check existence of matrix-bridge-zulip service - name: Check existence of matrix-bridge-zulip service
ansible.builtin.stat: ansible.builtin.stat:
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bridge-zulip.service"
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-zulip-bridge.service"
register: matrix_zulip_bridge_service_stat register: matrix_zulip_bridge_service_stat


- when: matrix_zulip_bridge_service_stat.stat.exists | bool - when: matrix_zulip_bridge_service_stat.stat.exists | bool
@@ -20,7 +20,7 @@
enabled: false enabled: false
daemon_reload: true daemon_reload: true


- name: Ensure matrix-bridge-zulip.service doesn't exist
- name: Ensure matrix-zulip-bridge.service doesn't exist
ansible.builtin.file: ansible.builtin.file:
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bridge-zulip.service"
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-zulip-bridge.service"
state: absent state: absent

+ 1
- 1
roles/custom/matrix-bridge-zulip/templates/labels.j2 Ver ficheiro

@@ -11,7 +11,7 @@ traefik.enable=true
traefik.docker.network={{ matrix_zulip_bridge_container_labels_traefik_docker_network }} traefik.docker.network={{ matrix_zulip_bridge_container_labels_traefik_docker_network }}
{% endif %} {% endif %}


traefik.http.services.matrix-bridge-zulip.loadbalancer.server.port={{ matrix_zulip_bridge_container_http_port }}
traefik.http.services.matrix-zulip-bridge.loadbalancer.server.port={{ matrix_zulip_bridge_container_http_port }}


{% set middlewares = [] %} {% set middlewares = [] %}




roles/custom/matrix-bridge-zulip/templates/systemd/matrix-matrixzulipbridge.service.j2 → roles/custom/matrix-bridge-zulip/templates/systemd/matrix-zulip-bridge.service.j2 Ver ficheiro


Carregando…
Cancelar
Guardar