diff --git a/roles/ckan/defaults/main.yml b/roles/ckan/defaults/main.yml index 793c71f..21ba9bd 100644 --- a/roles/ckan/defaults/main.yml +++ b/roles/ckan/defaults/main.yml @@ -38,6 +38,7 @@ ckanext_scheming_version: release-2.1.0 # whereas the branch parameter is used for updating the code. They are separate parameters # so that we can reference a specific commit in the code base while still getting # the correct Solr schema. They would usually be the same, however. -ckan_msl_core_plugin_version: 1.3.0 -ckan_msl_core_plugin_branch: 1.3.0 +ckan_msl_core_plugin_version: 1.4.0 +ckan_msl_core_plugin_branch: 1.4.0 ckan_msl_util_plugin_branch: 1.0.0 +ckan_msl_vocabularies_endpoint: https://epos-msl.ckan.test/webservice/api/vocabularies diff --git a/roles/ckan/tasks/main.yml b/roles/ckan/tasks/main.yml index 3bf643b..6ba44b5 100644 --- a/roles/ckan/tasks/main.yml +++ b/roles/ckan/tasks/main.yml @@ -142,20 +142,21 @@ - name: Ensure default schema has been backed up - ansible.builtin.command: "mv /etc/solr/conf/schema.xml /etc/solr/conf/schema.xml.orig" + ansible.builtin.command: + cmd: "mv /etc/solr/conf/schema.xml /etc/solr/conf/schema.xml.orig" + creates: /etc/solr/conf/schema.xml.orig when: solrschema.stat.exists and solrschema.stat.isreg is defined and solrschema.stat.isreg - name: Use custom Solr scheme for EPOS-MSL become_user: root become: true - ansible.builtin.template: - src: solrschema.xml.j2 + ansible.posix.synchronize: + src: /usr/lib/ckan/msl_ckan_core/ckanext/msl_ckan/config/solr/schema.xml dest: /etc/solr/conf/schema.xml - owner: root - group: root - mode: "0644" notify: Restart Solr + delegate_to: "{{ inventory_hostname }}" + when: not ansible_check_mode - name: Check who.ini diff --git a/roles/ckan/templates/ckan.ini.j2 b/roles/ckan/templates/ckan.ini.j2 index f2d5570..d11c02a 100644 --- a/roles/ckan/templates/ckan.ini.j2 +++ b/roles/ckan/templates/ckan.ini.j2 @@ -131,6 +131,8 @@ mslfacets.dataset_config = ckanext.msl_ckan:config/facets.json mslindexfields.field_config = ckanext.msl_ckan:config/msl_index_fields.json +mslvocabularies.endpoint_root = {{ ckan_msl_vocabularies_endpoint }} + # Define which views should be created by default # (plugins must be loaded in ckan.plugins) ckan.views.default_views = image_view text_view recline_view diff --git a/roles/ckan/templates/solrschema.xml.j2 b/roles/ckan/templates/solrschema.xml.j2 deleted file mode 100644 index 00fcecd..0000000 --- a/roles/ckan/templates/solrschema.xml.j2 +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -index_id -text - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/roles/common/tasks/firewalld.yml b/roles/common/tasks/firewalld.yml index 08ddbd3..cb4d132 100644 --- a/roles/common/tasks/firewalld.yml +++ b/roles/common/tasks/firewalld.yml @@ -9,7 +9,7 @@ - name: Ensure firewall is running and enabled - ansible.builtin.service: + ansible.builtin.systemd_service: name: firewalld state: started enabled: true diff --git a/roles/msl_api/defaults/main.yml b/roles/msl_api/defaults/main.yml index d7519a9..6df8461 100644 --- a/roles/msl_api/defaults/main.yml +++ b/roles/msl_api/defaults/main.yml @@ -1,7 +1,7 @@ --- # copyright Utrecht University -msl_api_version: 1.4.0 +msl_api_version: 1.5.0 msl_api_database: mslapi msl_api_database_user: msl msl_api_user: www-data