Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
pull/4900/head
| @@ -4315,6 +4315,8 @@ cinny_default_hs_url: "{{ matrix_homeserver_url }}" | |||||
| cinny_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}" | cinny_self_check_validate_certificates: "{{ matrix_playbook_ssl_enabled }}" | ||||
| cinny_base_path: "{{ matrix_base_data_path }}/client-cinny" | |||||
| ###################################################################### | ###################################################################### | ||||
| # | # | ||||
| # /cinny | # /cinny | ||||
| @@ -22,8 +22,8 @@ cinny_container_image: "{{ cinny_container_image_registry_prefix }}ajbura/cinny: | |||||
| cinny_container_image_registry_prefix_upstream_default: docker.io/ | cinny_container_image_registry_prefix_upstream_default: docker.io/ | ||||
| cinny_container_image_force_pull: "{{ cinny_container_image.endswith(':latest') }}" | cinny_container_image_force_pull: "{{ cinny_container_image.endswith(':latest') }}" | ||||
| cinny_data_path: "{{ matrix_base_data_path }}/client-cinny" | |||||
| cinny_docker_src_files_path: "{{ cinny_data_path }}/docker-src" | |||||
| cinny_base_path: "{{ matrix_base_data_path }}/client-cinny" | |||||
| cinny_docker_src_files_path: "{{ cinny_base_path }}/docker-src" | |||||
| # The base container network | # The base container network | ||||
| cinny_container_network: '' | cinny_container_network: '' | ||||
| @@ -16,7 +16,7 @@ | |||||
| owner: "{{ matrix_user_name }}" | owner: "{{ matrix_user_name }}" | ||||
| group: "{{ matrix_group_name }}" | group: "{{ matrix_group_name }}" | ||||
| with_items: | with_items: | ||||
| - {path: "{{ cinny_data_path }}", when: true} | |||||
| - {path: "{{ cinny_base_path }}", when: true} | |||||
| - {path: "{{ cinny_docker_src_files_path }}", when: "{{ cinny_container_image_self_build }}"} | - {path: "{{ cinny_docker_src_files_path }}", when: "{{ cinny_container_image_self_build }}"} | ||||
| when: "item.when | bool" | when: "item.when | bool" | ||||
| @@ -46,7 +46,7 @@ | |||||
| - name: Ensure Cinny configuration installed | - name: Ensure Cinny configuration installed | ||||
| ansible.builtin.copy: | ansible.builtin.copy: | ||||
| content: "{{ cinny_configuration | to_nice_json }}" | content: "{{ cinny_configuration | to_nice_json }}" | ||||
| dest: "{{ cinny_data_path }}/config.json" | |||||
| dest: "{{ cinny_base_path }}/config.json" | |||||
| mode: 0644 | mode: 0644 | ||||
| owner: "{{ matrix_user_name }}" | owner: "{{ matrix_user_name }}" | ||||
| group: "{{ matrix_group_name }}" | group: "{{ matrix_group_name }}" | ||||
| @@ -54,7 +54,7 @@ | |||||
| - name: Ensure Cinny additional config files installed | - name: Ensure Cinny additional config files installed | ||||
| ansible.builtin.template: | ansible.builtin.template: | ||||
| src: "{{ item.src }}" | src: "{{ item.src }}" | ||||
| dest: "{{ cinny_data_path }}/{{ item.name }}" | |||||
| dest: "{{ cinny_base_path }}/{{ item.name }}" | |||||
| mode: 0644 | mode: 0644 | ||||
| owner: "{{ matrix_user_name }}" | owner: "{{ matrix_user_name }}" | ||||
| group: "{{ matrix_group_name }}" | group: "{{ matrix_group_name }}" | ||||
| @@ -27,5 +27,5 @@ | |||||
| - name: Ensure Cinny paths doesn't exist | - name: Ensure Cinny paths doesn't exist | ||||
| ansible.builtin.file: | ansible.builtin.file: | ||||
| path: "{{ cinny_data_path }}" | |||||
| path: "{{ cinny_base_path }}" | |||||
| state: absent | state: absent | ||||
| @@ -24,10 +24,10 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% if cinny_container_http_host_bind_port %} | {% if cinny_container_http_host_bind_port %} | ||||
| -p {{ cinny_container_http_host_bind_port }}:8080 \ | -p {{ cinny_container_http_host_bind_port }}:8080 \ | ||||
| {% endif %} | {% endif %} | ||||
| --label-file={{ cinny_data_path }}/labels \ | |||||
| --label-file={{ cinny_base_path }}/labels \ | |||||
| --tmpfs=/tmp:rw,noexec,nosuid,size=10m \ | --tmpfs=/tmp:rw,noexec,nosuid,size=10m \ | ||||
| --mount type=bind,src={{ cinny_data_path }}/nginx.conf,dst=/etc/nginx/nginx.conf,ro \ | |||||
| --mount type=bind,src={{ cinny_data_path }}/config.json,dst=/app/config.json,ro \ | |||||
| --mount type=bind,src={{ cinny_base_path }}/nginx.conf,dst=/etc/nginx/nginx.conf,ro \ | |||||
| --mount type=bind,src={{ cinny_base_path }}/config.json,dst=/app/config.json,ro \ | |||||
| {% for arg in cinny_container_extra_arguments %} | {% for arg in cinny_container_extra_arguments %} | ||||
| {{ arg }} \ | {{ arg }} \ | ||||
| {% endfor %} | {% endfor %} | ||||