Просмотр исходного кода

Make Element Call role not reference foreign variables (except the matrix-base ones)

element-call-integration
Slavi Pantaleev 11 месяцев назад
Родитель
Сommit
2be4923aef
5 измененных файлов: 7 добавлений и 6 удалений
  1. +2
    -0
      group_vars/matrix_servers
  2. +3
    -3
      roles/custom/matrix-element-call/defaults/main.yml
  3. +0
    -2
      roles/custom/matrix-element-call/tasks/install.yml
  4. +1
    -0
      roles/custom/matrix-element-call/tasks/validate_config.yml
  5. +1
    -1
      roles/custom/matrix-element-call/templates/systemd/matrix-element-call.service.j2

+ 2
- 0
group_vars/matrix_servers Просмотреть файл

@@ -6270,6 +6270,8 @@ matrix_element_call_container_labels_traefik_docker_network: "{{ matrix_playbook
matrix_element_call_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}" matrix_element_call_container_labels_traefik_entrypoints: "{{ traefik_entrypoint_primary }}"
matrix_element_call_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}" matrix_element_call_container_labels_traefik_tls_certResolver: "{{ traefik_certResolver_primary }}"


matrix_element_call_config_livekit_livekit_service_url: "{{ matrix_livekit_jwt_service_public_url if matrix_livekit_jwt_service_enabled else '' }}"

######################################################################## ########################################################################
# # # #
# /matrix-element-call # # /matrix-element-call #


+ 3
- 3
roles/custom/matrix-element-call/defaults/main.yml Просмотреть файл

@@ -65,11 +65,11 @@ matrix_element_call_container_labels_traefik_additional_response_headers_auto: |
}} }}
matrix_element_call_container_labels_traefik_additional_response_headers_custom: {} matrix_element_call_container_labels_traefik_additional_response_headers_custom: {}


# matrix_client_element_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
# matrix_element_call_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
# See `../templates/labels.j2` for details. # See `../templates/labels.j2` for details.
# #
# Example: # Example:
# matrix_client_element_container_labels_additional_labels: |
# matrix_element_call_container_labels_additional_labels: |
# my.label=1 # my.label=1
# another.label="here" # another.label="here"
matrix_element_call_container_labels_additional_labels: '' matrix_element_call_container_labels_additional_labels: ''
@@ -145,4 +145,4 @@ matrix_element_call_config_default_server_config_m_homeserver_base_url: "{{ matr
matrix_element_call_config_default_server_config_m_homeserver_server_name: "{{ matrix_domain }}" matrix_element_call_config_default_server_config_m_homeserver_server_name: "{{ matrix_domain }}"


# Controls the livekit/livekit_service_url property in the config.json file. # Controls the livekit/livekit_service_url property in the config.json file.
matrix_element_call_config_livekit_livekit_service_url: "{{ matrix_livekit_jwt_service_public_url }}"
matrix_element_call_config_livekit_livekit_service_url: ""

+ 0
- 2
roles/custom/matrix-element-call/tasks/install.yml Просмотреть файл

@@ -5,7 +5,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later


--- ---
# roles/custom/matrix-element-call/tasks/install.yml


- name: Ensure Element Call paths exist - name: Ensure Element Call paths exist
ansible.builtin.file: ansible.builtin.file:
@@ -16,7 +15,6 @@
group: "{{ matrix_user_groupname }}" group: "{{ matrix_user_groupname }}"
with_items: with_items:
- path: "{{ matrix_element_call_base_path }}" - path: "{{ matrix_element_call_base_path }}"
- path: "{{ matrix_base_data_path }}/static-files/public/.well-known/element" # Directory for element.json


- name: Ensure Element Call config.json is in place - name: Ensure Element Call config.json is in place
ansible.builtin.template: ansible.builtin.template:


+ 1
- 0
roles/custom/matrix-element-call/tasks/validate_config.yml Просмотреть файл

@@ -14,6 +14,7 @@
with_items: with_items:
- {'name': 'matrix_element_call_container_network', when: true} - {'name': 'matrix_element_call_container_network', when: true}
- {'name': 'matrix_element_call_hostname', when: true} - {'name': 'matrix_element_call_hostname', when: true}
- {'name': 'matrix_element_call_config_livekit_livekit_service_url', when: true}


# Element Call appears to hardcode all paths to `/` (e.g. `/config.json`, `/assets/...`). # Element Call appears to hardcode all paths to `/` (e.g. `/config.json`, `/assets/...`).
# While we can properly serve the homepage and handle stripping the path prefix on our side, # While we can properly serve the homepage and handle stripping the path prefix on our side,


+ 1
- 1
roles/custom/matrix-element-call/templates/systemd/matrix-element-call.service.j2 Просмотреть файл

@@ -1,7 +1,7 @@
#jinja2: lstrip_blocks: "True" #jinja2: lstrip_blocks: "True"
[Unit] [Unit]
Description=Element Call Description=Element Call
{% for service in matrix_client_element_systemd_required_services_list %}
{% for service in matrix_element_call_systemd_required_services_list %}
Requires={{ service }} Requires={{ service }}
After={{ service }} After={{ service }}
{% endfor %} {% endfor %}


Загрузка…
Отмена
Сохранить