Closed vjrj closed 1 year ago
Aha, thanks, I must have missed that - basically any role using tomcat_deploy
should have these variables set - this example from biocache-hub vars file:
version: "{{ biocache_hub_version | default('LATEST') }}"
artifactId: "{{ (biocache_hub_artifact | default(biocache_hub)) | default('generic-hub') }}"
groupId: "{{ biocache_hub_group_id | default('au.org.ala') }}"
classifier: "{{ biocache_hub_classifier | default('') }}"
packaging: "{{ biocache_hub_packaging | default('war') }}"
These are the roles using tomcat_deploy
with missing groupId
:
$ for i in `grep -r tomcat_deploy ansible/roles | grep yml | grep context | cut -d ":" -f 1 | uniq | cut -d "/" -f 1-3` ; do grep -L groupId $i/vars/*; done
ansible/roles/biocache-service/vars/main.yml
ansible/roles/solr4/vars/main.yml
ansible/roles/sandbox/vars/main.yml
ansible/roles/cas2/vars/main.yml
ansible/roles/biocache3-service/vars/main.yml
ansible/roles/geoserver/vars/main.yml
ansible/roles/geoserver/vars/main.yml
ansible/roles/ozatlas-proxy/vars/main.yml
ansible/roles/sightings/vars/main.yml
@matthewandrews, can we add a default ALA groupId
to the tomcat_deploy
task and only set it in geoserver
?
PS: geoserver_war_url: "https://repo.osgeo.org/repository/release/org/geoserver/web/gs-web-app/2.19.2/gs-web-app-2.19.2.war"
This still fails in the geoserver task:
TASK [download from maven repo https://repo.osgeo.org/repository/release/org/geoserver/web/gs-web-app/2.19.2/gs-web-app-2.19.2.war] ***
Wednesday 11 October 2023 10:58:11 +0200 (0:00:00.476) 0:04:45.725 *****
fatal: [ala-install-test-2]: FAILED! => {"changed": false, "msg": "group_id must be set"}
and
TASK [download from maven repo https://github.com/geonetwork/core-geonetwork/releases/download/3.4.4/geonetwork.war] ***
Wednesday 11 October 2023 12:02:54 +0200 (0:00:00.476) 0:11:12.970 *****
fatal: [ala-install-test-2]: FAILED! => {"changed": false, "msg": "group_id must be set"}
I cannot fix the geonetwork war because:
https://github.com/geonetwork/core-geonetwork/releases/download/3.4.4/geonetwork.war
We can:
Oh - if geoserver is not using a maven repo, then I guess tomcat_deploy should have an option to use get_url rather than maven_artifact
I've just added to #706 a variable for that:
We introduced a new issue with #690 , I think (or maybe we should update our inventories):
cc @matthewandrews