Skip to content

Commit b54eadb

Browse files
committed
Revert "Remove matrix_synapse_container_image_customizations_s3_storage_provider_installation_old_boto_workaround_enabled"
This reverts commit 2b0ea94. We're going back to s3-storage-provider=v1.5.0 Ref: matrix-org/synapse-s3-storage-provider#134 (comment)
1 parent 2b0ea94 commit b54eadb

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

roles/custom/matrix-synapse/defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ matrix_synapse_container_image_customizations_enabled: |-
4848
# The version that will be installed is specified in `matrix_synapse_ext_synapse_s3_storage_provider_version`.
4949
matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled: "{{ matrix_synapse_ext_synapse_s3_storage_provider_enabled }}"
5050

51+
# Controls whether to install an old version of boto3 and botocore, to work around the following issue:
52+
# https://github.com/aws/aws-cli/issues/9214
53+
matrix_synapse_container_image_customizations_s3_storage_provider_installation_old_boto_workaround_enabled: true
54+
5155
# Controls whether custom build steps will be added to the Dockerfile for installing auto-accept-invite module.
5256
# The version that will be installed is specified in `matrix_synapse_ext_synapse_auto_accept_invite_version`.
5357
matrix_synapse_container_image_customizations_auto_accept_invite_installation_enabled: "{{ matrix_synapse_ext_synapse_auto_accept_invite_enabled }}"

roles/custom/matrix-synapse/tasks/validate_config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@
117117
- {'old': 'matrix_synapse_experimental_features_msc3861_admin_token', 'new': '<removed>'}
118118
- {'old': 'matrix_synapse_experimental_features_msc3861_account_management_url', 'new': '<removed>'}
119119

120-
- {'old': 'matrix_synapse_container_image_customizations_s3_storage_provider_installation_old_boto_workaround_enabled', 'new': '<removed; see https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4637>'}
121-
122120
- name: (Deprecation) Catch and report renamed settings in matrix_synapse_configuration_extension_yaml
123121
ansible.builtin.fail:
124122
msg: >-

roles/custom/matrix-synapse/templates/synapse/customizations/Dockerfile.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ RUN pip install synapse-auto-accept-invite=={{ matrix_synapse_ext_synapse_auto_a
4545
{% endif %}
4646

4747
{% if matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled %}
48+
{% if matrix_synapse_container_image_customizations_s3_storage_provider_installation_old_boto_workaround_enabled %}
49+
RUN pip install 'boto3<1.36.0' 'botocore<1.36.0' synapse-s3-storage-provider=={{ matrix_synapse_ext_synapse_s3_storage_provider_version }}
50+
{% else %}
4851
RUN pip install synapse-s3-storage-provider=={{ matrix_synapse_ext_synapse_s3_storage_provider_version }}
4952
{% endif %}
53+
{% endif %}
5054
5155
{% if matrix_synapse_container_image_customizations_templates_enabled %}
5256
COPY --from=templates-builder {{ matrix_synapse_container_image_customizations_templates_in_container_base_path }} {{ matrix_synapse_container_image_customizations_templates_in_container_base_path }}

0 commit comments

Comments
 (0)