Add ServiceMap.xml to is-registry role

This commit is contained in:
Antonio Calanducci 2023-11-28 10:39:05 +01:00
parent 7440b485ba
commit 5667441840
4 changed files with 28 additions and 0 deletions

View File

@ -41,6 +41,14 @@
group: root
mode: 0400
- name: Install the ServiceMap.xml
ansible.builtin.template:
src: ServiceMap.xml.j2
dest: "{{ is_registry_compose_dir }}/ServiceMap_{{ start_scopes }}.xml"
owner: root
group: root
mode: 0400
- name: Create the secret for GHNConfig.xml
community.docker.docker_secret:
name: "{{ service_prefix }}-ghn-config-{{ scope_name }}"
@ -59,6 +67,12 @@
data_src: '{{ is_registry_compose_dir }}/server-config.wsdd'
state: present
- name: Create the secret for ServiceMap.xml
community.docker.docker_secret:
name: "{{ service_prefix }}-ServiceMap-{{ scope_name }}"
data_src: "{{ is_registry_compose_dir }}/ServiceMap_{{ start_scopes }}.xml"
state: present
- name: Install the devel gcube keys
get_url: url={{ item.url }} dest={{ is_registry_compose_dir }}/{{ item.name }} owner=root group=root mode=0600
with_items: '{{ gcube_dev_security_keys }}'

View File

@ -0,0 +1,7 @@
<ServiceMap>
<Service name ="ISICAllQueryPT" endpoint ="http://node2.d4science.org:8080/wsrf/services/gcube/informationsystem/collector/XQueryAccess"/>
<Service name ="ISICAllRegistrationPT" endpoint ="http://node2.d4science.org:8080/wsrf/services/gcube/informationsystem/collector/Sink"/>
<Service name ="ISICAllCollectionPT" endpoint ="http://node2.d4science.org:8080/wsrf/services/gcube/informationsystem/collector/wsdaix/XMLCollectionAccess"/>
<Service name ="ISICAllStoragePT" endpoint ="http://node2.d4science.org:8080/wsrf/services/gcube/informationsystem/collector/XMLStorageAccess"/>
<Service name ="ISRegistry" endpoint="http://{{ gcore_host }}:8080/wsrf/services/gcube/informationsystem/registry/ResourceRegistration"/>
</ServiceMap>

View File

@ -12,6 +12,8 @@ secrets:
external: true
{{ service_prefix }}-server-config-{{ scope_name }}:
external: true
{{ service_prefix }}-ServiceMap-{{ scope_name }}:
external: true
gcube-dev-legacy-security-key:
external: true
{% for item in gcube_dev_security_keys %}
@ -41,6 +43,11 @@ services:
uid: "333"
gid: "333"
mode: 0440
- source: {{ service_prefix }}-ServiceMap-{{ scope_name }}
target: /home/gcube/gCore/config/ServiceMap_{{ start_scopes }}.xml
uid: "333"
gid: "333"
mode: 0440
- source: gcube-dev-legacy-security-key
target: /home/gcube/gCore/config/symm.key
uid: "333"