From 9a8c9850aa4f66f8a75fb3e505c8ac8c04837ee7 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 26 Mar 2024 12:15:46 +0200 Subject: [PATCH] Pass and remap `matrix_architecture` to KeyDB role Only `amd64` and `arm64` actually work. The KeyDB role includes a validation task and will complain about unsupported architectures (like `arm32`). `arm32` users can stick to Redis for now (`keydb_enabled: false` + `redis_enabled: true`) until: - the KeyDB role starts supporting self-building.. although building such large projects on weak CPUs is probably impractical - a prebuilt arm32 image is made available by other means --- group_vars/matrix_servers | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers index 4919d9162..227802723 100755 --- a/group_vars/matrix_servers +++ b/group_vars/matrix_servers @@ -3992,6 +3992,15 @@ keydb_gid: "{{ matrix_user_gid }}" keydb_base_path: "{{ matrix_base_data_path }}/keydb" +keydb_arch: |- + {{ + ({ + 'amd64': 'x86_64', + 'arm32': 'arm32', + 'arm64': 'arm64', + })[matrix_architecture] + }} + ###################################################################### # # keydb