From 80e0038e3c64d61275f29865a52b3a99ea881b8d Mon Sep 17 00:00:00 2001 From: Waldemar Smirnow Date: Tue, 17 Dec 2024 17:51:18 +0100 Subject: [PATCH] Install analysis-icu plugin for OC17+ Opencast 17+ needs analysis-icu OpenSearch plugin installed. --- README.md | 2 ++ molecule/default/converge.yml | 2 +- tasks/opensearch.yml | 11 +++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 80f2843..1f6d50b 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ This role supports the following, ## Role Variables +- `opencast_version_major` + - Some Opencast versions requires additional OpenSearch plugins. This will be handled by this role giving the Opencast major version. - `opencast_repository_identifiers` - List of repository identifiers to temporarily activate for integration - Will usually be provided by the [elan.opencast_repository](https://github.com/elan-ev/opencast_repository) role diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index a369e34..a7b7eef 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -2,7 +2,7 @@ - name: Converge hosts: all vars: - opencast_version_major: 15 + opencast_version_major: 17 opencast_repository_enabled_release: true opencast_opensearch_heap_size: 100m tasks: diff --git a/tasks/opensearch.yml b/tasks/opensearch.yml index 17045e1..9150f51 100644 --- a/tasks/opensearch.yml +++ b/tasks/opensearch.yml @@ -35,3 +35,14 @@ loop: - Xms - Xmx + +- name: Install OpenSearch analysis-icu plugin + notify: Restart opensearch + ansible.builtin.command: + argv: + - /usr/share/opensearch/bin/opensearch-plugin + - install + - --silent + - analysis-icu + creates: /usr/share/opensearch/plugins/analysis-icu + when: opencast_version_major | default(16) | int >= 17