Fixed some naming.

This commit is contained in:
Andrea Dell'Amico 2023-09-28 16:26:13 +02:00
parent a93692866d
commit b7566d3f8b
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
10 changed files with 44 additions and 58 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/opt/local/bin/python3.10"
}

View File

@ -1,4 +1,4 @@
---
bluecloud_ontotagme_authorized_scopes: '/d4science.research-infrastructures.eu/SoBigData/TagMe'
bluecloud_ontotagme_service_host: 'ontotagme-bluecloud.d4science.org'
bluecloud_ontotagme_service_host: 'ontotagme-sobigdata.d4science.org'
bluecloud_ontotagme_pep: false

View File

@ -1,48 +0,0 @@
version: '3.6'
networks:
{{ ontotagme_docker_network }}:
{% if not ontotagme_pep %}
haproxy-public:
external: true
{% endif %}
volumes:
{{ ontotagme_data_volume }}:
{% if ontotagme_data_volume_type == "nfs4" %}
driver: local
driver_opts:
type: {{ ontotagme_data_volume_type }}
o: "{{ ontotagme_data_volume_o }}"
device: "{{ ontotagme_data_volume_device }}"
{% endif %}
services:
{{ ontotagme_docker_catalogue_service_name }}:
image: {{ ontotagme_docker_catalogue_service_image }}
networks:
- {{ ontotagme_docker_network }}
{% if not ontotagme_pep %}
- haproxy-public
{% endif %}
environment:
JVM_ARGS: -Xmx2g
JAVA_OPTIONS: -Xmx2048m -Xms2048m
ADMIN_PASSWORD: {{ vault_ontotagme_admin_password }}
volumes:
- {{ ontotagme_data_volume }}:/fuseki-base
deploy:
mode: replicated
replicas: 1
endpoint_mode: dnsrr
placement:
constraints: [node.role == worker]
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 120s
logging:
driver: 'journald'

View File

@ -1,10 +1,10 @@
---
ontotagme_compose_dir: '/srv/bluecloud_ontotagme_stack'
ontotagme_docker_stack_name: 'bluecloud-ontotagme'
ontotagme_docker_catalogue_service_name: 'ontotagme'
ontotagme_docker_catalogue_service_image: 'lorenzobellomosns/ontotagme-sobigdata/'
ontotagme_docker_network: 'bluecloud-ontotagme-network'
ontotagme_catalogue_ui_port: 8080
ontotagme_compose_dir: '/srv/sobigdata_ontotagme_stack'
ontotagme_docker_stack_name: 'sobigdata-ontotagme'
ontotagme_docker_service_name: 'ontotagme'
ontotagme_docker_service_image: 'lorenzobellomosns/ontotagme-sobigdata:latest'
ontotagme_docker_network: 'sobigdata-ontotagme-network'
ontotagme_service_port: 5050
ontotagme_haproxy_public_net: 'haproxy-public'
ontotagme_authorized_scopes: '/gcube'
@ -15,7 +15,7 @@ pep_replicas: 1
nginx_pep_debug_enabled: 'false'
nginx_pep_max_body_size: 500M
nginx_pep_body_timeout: 60s
nginx_pep_base_url: https://code-repo.d4science.org/gCubeSystem/d4s-nginx-pep-examples/raw/branch/master/bluecloud-ontotagme/
nginx_pep_base_url: https://code-repo.d4science.org/gCubeSystem/d4s-nginx-pep-examples/raw/branch/master/sobigdata-ontotagme/
nginx_pep_templates:
- nginx.conf
- nginx.default.conf

View File

@ -1,6 +1,6 @@
galaxy_info:
author: Andrea Dell'Amico
description: Role that deploys the JERICO CORE into a Docker Swarm
description: Role that deploys the OntoTAGME Sobigdata service into a Docker Swarm
company: ISTI-CNR
namespace: adellam
role_name: ontotagme

View File

@ -1,5 +1,5 @@
---
- name: ontotagme | Manage the installation of the Sobigdata REL project Docker stack
- name: ontotagme | Manage the installation of the Sobigdata OntoTAGME project Docker stack
when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool
tags: ['ontotagme']
run_once: true

View File

@ -0,0 +1,31 @@
version: '3.6'
networks:
{{ ontotagme_docker_network }}:
{% if not ontotagme_pep %}
haproxy-public:
external: true
{% endif %}
services:
{{ ontotagme_docker_service_name }}:
image: {{ ontotagme_docker_service_image }}
networks:
- {{ ontotagme_docker_network }}
{% if not ontotagme_pep %}
- haproxy-public
{% endif %}
deploy:
mode: replicated
replicas: 1
endpoint_mode: dnsrr
placement:
constraints: [node.role == worker]
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 120s
logging:
driver: 'journald'