Add placeholder files for is-collector role and playbook

This commit is contained in:
Antonio Calanducci 2023-10-12 13:15:15 +02:00
parent 6505a8a61a
commit 829324e290
28 changed files with 1003 additions and 2 deletions

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<jndiConfig xmlns="http://wsrf.globus.org/jndi/config">
<global>
<environment
name="securityenabled"
value="false"
type="java.lang.Boolean"
override="false" />
<environment
name="mode"
value="ROOT"
type="java.lang.String"
override="false" />
<!-- multiple scopes must be separated by a comma (e.g "EM,testing")-->
<environment
name="startScopes"
value=""
type="java.lang.String"
override="false" />
<environment
name="allowedScopes"
value=""
type="java.lang.String"
override="false" />
<environment
name="infrastructure"
value="gcube"
type="java.lang.String"
override="false" />
<environment
name="labels"
value="GHNLabels.xml"
type="java.lang.String"
override="false" />
<environment
name="GHNtype"
value="STATIC"
type="java.lang.String"
override="false" />
<environment
name="localProxy"
value="/home/globus/..."
type="java.lang.String"
override="false" />
<environment
name="coordinates"
value="43.719627,10.421626"
type="java.lang.String"
override="false" />
<environment
name="country"
value="it"
type="java.lang.String"
override="false" />
<environment
name="location"
value="Pisa"
type="java.lang.String"
override="false" />
<environment
name="updateInterval"
value="60"
type="java.lang.Long"
override="false" />
<environment
name="trustedGHNSynchInterval"
value="600"
type="java.lang.Long"
override="false" />
</global>
</jndiConfig>

View File

@ -0,0 +1,153 @@
<?xml version="1.0" encoding="UTF-8"?>
<jndiConfig xmlns="http://wsrf.globus.org/jndi/config">
<service name="gcube/informationsystem/collector">
<environment name="configDir" value="etc/org.gcube.informationsystem.collector" type="java.lang.String"
override="false" />
<environment name="backupDir" value="/home/gcube/existICBackups-root" type="java.lang.String"
override="false" />
<environment name="maxBackups" value="10" type="java.lang.String"
override="false" />
<environment name="scheduledBackupInHours" value="12"
type="java.lang.String" override="false" />
<!-- a value=="-1" means no sweeping is requested -->
<environment name="sweeperIntervalInMillis" value="240000"
type="java.lang.String" override="false" />
<environment name="registrationURI" value="http://...."
type="java.lang.String" override="false" />
<environment name="resourceExpirationTimeInMillis" value="2400000"
type="java.lang.String" override="false" />
<environment name="deleteRPsOnStartup" value="false"
type="java.lang.String" override="false" />
<environment name="maxOperationsPerConnection" value="5000" type="java.lang.String"
override="false" />
<environment name="startScopes" value="/gcube"
type="java.lang.String" override="false" />
</service>
<global>
<resource name="configuration"
type="org.globus.mds.aggregator.impl.AggregatorConfiguration">
<resourceParams>
<parameter>
<name>
factory
</name>
<value>
org.globus.wsrf.jndi.BeanFactory
</value>
</parameter>
<parameter>
<name>
entrySweeperInterval
</name>
<value>
480000
</value>
</parameter>
<parameter>
<name>
entryRemovedCallback
</name>
<value>
org.gcube.informationsystem.collector.impl.state.ICAggregatorRemoveCallback
</value>
</parameter>
<parameter>
<name>aggregatorSources</name>
<value>org.globus.mds.aggregator.impl.QueryAggregatorSource
org.globus.mds.aggregator.impl.SubscriptionAggregatorSource
org.globus.mds.aggregator.impl.ExecutionAggregatorSource</value>
</parameter>
</resourceParams>
</resource>
</global>
<service name="gcube/informationsystem/collector/wsdaix/XMLCollectionAccess">
<environment
name="name"
value="XMLCollectionAccess"
type="java.lang.String"
override="false" />
</service>
<service name="gcube/informationsystem/collector/XQueryAccess">
<environment
name="name"
value="XQueryAccess"
type="java.lang.String"
override="false" />
</service>
<!-- Aggregator Framework registration portType -->
<service name="gcube/informationsystem/collector/Sink">
<environment
name="name"
value="Sink"
type="java.lang.String"
override="false" />
<resource name="home"
type="org.globus.mds.aggregator.impl.SingletonAggregatorHome">
<resourceParams>
<parameter>
<name>
factory
</name>
<value>
org.globus.wsrf.jndi.BeanFactory
</value>
</parameter>
<parameter>
<name>resourceClass</name>
<value>org.gcube.informationsystem.collector.impl.state.AggregatorRegisteredResource</value>
</parameter>
</resourceParams>
</resource>
<resourceLink name="entryHome" target="java:comp/env/services/gcube/informationsystem/collector/SinkEntry/home"/>
<resourceLink name="configuration" target="java:comp/env/configuration"/>
</service>
<service name="gcube/informationsystem/collector/SinkEntry">
<environment
name="SinkEntry"
value="ResourceFactory"
type="java.lang.String"
override="false" />
<resource name="home"
type="org.globus.mds.aggregator.impl.AggregatorServiceGroupEntryHome">
<resourceParams>
<parameter>
<name>
factory
</name>
<value>
org.globus.wsrf.jndi.BeanFactory
</value>
</parameter>
</resourceParams>
</resource>
<resourceLink name="groupHome" target="java:comp/env/services/gcube/informationsystem/collector/Sink/home"/>
<resourceLink name="entryHome" target="java:comp/env/services/gcube/informationsystem/collector/SinkEntry/home"/>
<resourceLink name="configuration" target="java:comp/env/configuration"/>
</service>
</jndiConfig>

View File

@ -0,0 +1,197 @@
<?xml version="1.0"?>
<deployment name="defaultServerConfig" xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd" xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<globalConfiguration>
<parameter name="usageStatisticsTargets" value="usage-stats.globus.org:4810"/>
<parameter name="logicalHost" value="node8-d-d4s.d4science.org"/>
<parameter name="publishHostName" value="true"/>
<parameter name="containerThreads" value="20"/>
<parameter name="containerThreadsMax" value="200"/>
<parameter name="sendXsiTypes" value="true"/>
<!-- @CONTAINER_SECURITY_DESCRIPTOR@ -->
<!-- <parameter name="containerSecDesc" value="etc/globus_wsrf_core/global_security_descriptor.xml"/> -->
<!-- OPERATION PROVIDERS -->
<parameter name="GCUBEProvider" value="org.gcube.common.core.porttypes.GCUBEProvider"/>
<parameter name="GCUBENotificationProvider" value="org.gcube.common.core.porttypes.GCUBENotificationProvider"/>
<parameter name="DestroyProvider" value="org.globus.wsrf.impl.lifetime.DestroyProvider"/>
<parameter name="SetTerminationTimeProvider" value="org.globus.wsrf.impl.lifetime.SetTerminationTimeProvider"/>
<parameter name="GetRPProvider" value="org.globus.wsrf.impl.properties.GetResourcePropertyProvider"/>
<parameter name="GetMRPProvider" value="org.globus.wsrf.impl.properties.GetMultipleResourcePropertiesProvider"/>
<parameter name="SetRPProvider" value="org.globus.wsrf.impl.properties.SetResourcePropertiesProvider"/>
<parameter name="QueryRPProvider" value="org.globus.wsrf.impl.properties.QueryResourcePropertiesProvider"/>
<parameter name="SubscribeProvider" value="org.globus.wsrf.impl.notification.SubscribeProvider"/>
<parameter name="GetCurrentMessageProvider" value="org.globus.wsrf.impl.notification.GetCurrentMessageProvider"/>
<parameter name="PauseSubscriptionProvider" value="org.globus.wsrf.impl.notification.PauseSubscriptionProvider"/>
<parameter name="ResumeSubscriptionProvider" value="org.globus.wsrf.impl.notification.ResumeSubscriptionProvider"/>
<parameter name="NotificationConsumerProvider" value="org.globus.wsrf.impl.notification.NotificationConsumerProvider"/>
<!-- WS Secure Conversation service -->
<parameter name="authenticationService" value="gsi/AuthenticationService"/>
<requestFlow>
<!-- The AddressingHandler must be first -->
<handler type="java:org.globus.wsrf.handlers.AddressingHandler"/>
<!-- The URLMapper must be second -->
<handler type="java:org.globus.wsrf.handlers.URLMapper"/>
<!-- @TOMCAT_SEC_HANDLER@ -->
<!-- The AuthenticationServiceHandler must be third -->
<handler type="AuthenticationServiceHandler"/>
<handler type="java:org.globus.wsrf.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.wssec.WSSecurityHandler"/>
</handler>
<handler type="java:org.globus.wsrf.impl.security.authentication.SecurityPolicyHandler"/>
<handler type="java:org.globus.wsrf.impl.security.authorization.AuthorizationHandler"/>
<handler type="java:org.gcube.common.handlers.GCUBEHandler"/>
<!-- The FaultHandler must be last -->
<handler type="java:org.globus.wsrf.handlers.FaultHandler"/>
</requestFlow>
<responseFlow>
<!-- The WSDLHandler must be first -->
<handler type="java:org.globus.wsrf.handlers.WSDLHandler"/>
<handler type="java:org.globus.wsrf.handlers.AddressingHandler"/>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.securemsg.X509EncryptHandler"/>
</handler>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.securemsg.X509SignHandler"/>
</handler>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.UsernameHandler"/>
</handler>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.secureconv.GSSHandler"/>
</handler>
<handler type="java:org.globus.wsrf.handlers.MessageLoggingHandler"/>
<handler type="java:org.gcube.common.handlers.GCUBEHandler"/>
</responseFlow>
</globalConfiguration>
<handler name="RPCDispatcher" type="java:org.apache.axis.providers.java.RPCProvider"/>
<handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="MsgDispatcher" type="java:org.apache.axis.providers.java.MsgProvider"/>
<handler name="LocalRequester" type="java:org.globus.axis.transport.local.LocalRequester"/>
<handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
<handler name="logger" type="java:org.apache.axis.handlers.LogHandler"/>
<handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
<handler name="AuthenticationServiceHandler" type="java:org.globus.wsrf.impl.security.authentication.secureconv.service.AuthenticationServiceHandler"/>
<!--<service name="AdminService" provider="java:MSG">
<namespace>http://xml.apache.org/axis/wsdd/</namespace>
<parameter name="allowedMethods" value="AdminService"/>
<parameter name="enableRemoteAdmin" value="false"/>
<parameter name="className" value="org.apache.axis.utils.Admin"/>
</service>-->
<!--<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>-->
<service name="NotificationConsumerService" provider="Handler" style="document" use="literal">
<parameter name="allowedMethods" value="*"/>
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
<parameter name="className" value="org.globus.wsrf.impl.notification.NotificationConsumerProvider"/>
<wsdlFile>share/schema/core/notification/notification_consumer_service.wsdl</wsdlFile>
<typeMapping deserializer="org.apache.axis.encoding.ser.ElementDeserializerFactory" encodingStyle="" qname="xsd:anyType" type="java:java.lang.Object" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" name="ResourcePropertyValueChangeNotificationElementType" qname="ns1:ResourcePropertyValueChangeNotificationElementType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.globus.wsrf.core.notification.ResourcePropertyValueChangeNotificationElementType" xmlns:ns1="http://wsrf.globus.org/core/notification"/>
</service>
<service name="SubscriptionManagerService" provider="Handler" style="document" use="literal">
<parameter name="allowedMethods" value="*"/>
<parameter name="scope" value="Application"/>
<parameter name="providers" value="DestroyProvider SetTerminationTimeProvider GetRPProvider PauseSubscriptionProvider"/>
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
<parameter name="className" value="org.globus.wsrf.impl.notification.ResumeSubscriptionProvider"/>
<wsdlFile>share/schema/core/notification/subscription_manager_service.wsdl</wsdlFile>
</service>
<service name="gsi/AuthenticationService" provider="Handler" style="document" use="literal">
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.secureconv.service.AuthenticationServiceImpl"/>
<wsdlFile>share/schema/core/security/secconv/secure_conversation_service.wsdl</wsdlFile>
</service>
<!--<service name="ShutdownService" provider="java:RPC" style="document" use="literal">
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="org.globus.wsrf.container.ShutdownService"/>
<wsdlFile>share/schema/core/management/shutdown_service.wsdl</wsdlFile>
<parameter name="securityDescriptor" value="org/globus/wsrf/impl/security/descriptor/gsi-security-config.xml"/>
</service>-->
<transport name="http">
<parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
<requestFlow>
<handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
</transport>
<transport name="local">
<requestFlow>
<handler type="LocalRequester"/>
</requestFlow>
<responseFlow>
<handler type="LocalResponder"/>
</responseFlow>
</transport>
<transport name="SimpleHTTP">
<requestFlow/>
</transport>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" name="DeleteType" qname="wsrp:DeleteType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.oasis.wsrf.properties.DeleteType"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" name="InsertType" qname="wsrp:InsertType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.oasis.wsrf.properties.InsertType"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" name="UpdateType" qname="wsrp:UpdateType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.oasis.wsrf.properties.UpdateType"/>
<typeMapping deserializer="org.globus.wsrf.encoding.TopicExpressionDeserializerFactory" encodingStyle="" name="TopicExpressionType" qname="wsnt:TopicExpressionType" serializer="org.globus.wsrf.encoding.TopicExpressionSerializerFactory" type="java:org.oasis.wsn.TopicExpressionType"/>
<typeMapping deserializer="org.globus.wsrf.encoding.AnyListDeserializerFactory" encodingStyle="" name=">SetResourceProperties" qname="wsrp:>SetResourceProperties" serializer="org.globus.wsrf.encoding.AnyListSerializerFactory" type="java:org.oasis.wsrf.properties.SetResourceProperties_Element"/>
<typeMapping deserializer="org.globus.wsrf.encoding.QueryExpressionDeserializerFactory" encodingStyle="" name="QueryExpressionType" qname="wsrp:QueryExpressionType" serializer="org.globus.wsrf.encoding.QueryExpressionSerializerFactory" type="java:org.oasis.wsrf.properties.QueryExpressionType"/>
<!-- WS-Addressing Bits -->
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="wsa:EndpointReferenceType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.apache.axis.message.addressing.EndpointReferenceType"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="wsa:ReferencePropertiesType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.apache.axis.message.addressing.ReferencePropertiesType"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle="" qname="wsa:AttributedURI" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" type="java:org.apache.axis.message.addressing.AttributedURI"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle="" qname="wsa:AttributedQName" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" type="java:org.apache.axis.message.addressing.AttributedQName"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle="" qname="wsa:ServiceNameType" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" type="java:org.apache.axis.message.addressing.ServiceNameType"/>
<!-- WS Trust and WS Secure Conversation -->
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:SecurityContextTokenType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.globus.ws.sc.SecurityContextTokenType" xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/04/sc"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle="" qname="ns1:BinaryExchangeType" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" type="java:org.globus.ws.trust.BinaryExchangeType" xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/04/trust"/>
<!-- GCUBE Faults -->
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:GCUBEUnrecoverableFault" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.gcube.common.core.faults.GCUBEUnrecoverableFault" xmlns:ns1="http://gcube-system.org/namespaces/common/core/faults"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:GCUBERetrySameFault" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.gcube.common.core.faults.GCUBERetrySameFault" xmlns:ns1="http://gcube-system.org/namespaces/common/core/faults"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:GCUBERetryEquivalentFault" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.gcube.common.core.faults.GCUBERetryEquivalentFault" xmlns:ns1="http://gcube-system.org/namespaces/common/core/faults"/>
</deployment>

View File

@ -2,4 +2,4 @@ start_scopes: 'devsec'
complete_start_scope: '/gcube/devsec'
gcore_host: 'node3.d.d4science.research-infrastructures.eu'
is_registry_docker_stack_name: 'gcore-devsec'
is_registry_docker_service_server_name: 'is_registry'
is_registry_docker_service_server_name: 'is-registry'

12
is-collector.yml Normal file
View File

@ -0,0 +1,12 @@
---
- name: Configurazione IS Collector Service
#hosts: is_registry_devsec:is_registry_devnext
hosts: all
# tasks:
# - name:
# debug:
# var: start_scopes
roles:
- { role: is-collector }

View File

@ -1,5 +1,5 @@
---
- name: Configurazione IS Registry
- name: Configurazione IS Registry Service
#hosts: is_registry_devsec:is_registry_devnext
hosts: all
# tasks:

View File

@ -0,0 +1,15 @@
---
# defaults file for is-collector
start_scopes: 'devNext'
infrastructure: 'gcube'
complete_start_scope: '/gcube/devNext'
gcore_host: 'node8-d-d4s.d4science.org'
config_dir: 'etc/is-collector-service'
scope_name: '{{ start_scopes | lower }}'
is_collector_compose_dir: '/srv/is-collector-stack-{{ scope_name }}'
is_collector_docker_stack_name: 'is-collector-stack-{{ scope_name }}'
is_collector_docker_service_server_name: 'is-collector-{{ scope_name }}'
is_collector_docker_server_image: 'd4science/gcore-is-collector:latest'
is_collector_docker_network: 'is-collector-network'
#is_registry_service_port: 8080
is_registry_haproxy_public_net: 'haproxy-public'

View File

@ -0,0 +1,55 @@
galaxy_info:
author: Antonio Calanducci
description: IS Collector
company: ISTI-CNR
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: EUPL 1.2+
min_ansible_version: 2.9
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# - name: python3-environment
# src: git+https://gitea-s2i2s.isti.cnr.it/ISTI-ansible-roles/ansible-role-python3-environment.git
# version: master
# state: latest

View File

@ -0,0 +1,67 @@
---
# tasks file for is-registry
- name: Create the directory where the compose file will be installed
ansible.builtin.file:
dest: '{{ is_collector_compose_dir }}'
state: directory
mode: 0750
owner: root
group: root
- name: Install the docker compose file
ansible.builtin.template:
src: docker-compose.yml.j2
dest: '{{ is_collector_compose_dir }}/is-collector-docker-compose.yml'
owner: root
group: root
mode: 0400
- name: Install the GHNConfig.xml
ansible.builtin.template:
src: GHNConfig.xml.j2
dest: "{{ is_collector_compose_dir }}/GHNConfig.xml"
owner: root
group: root
mode: 0400
- name: Install the jndi-config.xml
ansible.builtin.template:
src: jndi-config.xml.j2
dest: "{{ is_collector_compose_dir }}/jndi-config.xml"
owner: root
group: root
mode: 0400
- name: Install the server-config.wsdd
ansible.builtin.template:
src: server-config.wsdd.j2
dest: "{{ is_collector_compose_dir }}/server-config.wsdd"
owner: root
group: root
mode: 0400
- name: Create the secret for GHNConfig.xml
community.docker.docker_secret:
name: ghn-config-{{ scope_name }}
data_src: '{{ is_collector_compose_dir }}/GHNConfig.xml'
state: present
- name: Create the secret for jndi-config.xml
community.docker.docker_secret:
name: jndi-config-{{ scope_name }}
data_src: '{{ is_collector_compose_dir }}/jndi-config.xml'
state: present
- name: Create the secret for server-config.wsdd
community.docker.docker_secret:
name: server-config-{{ scope_name }}
data_src: '{{ is_collector_compose_dir }}/server-config.wsdd'
state: present
- name: Start the project stack on Docker Swarm
community.docker.docker_stack:
name: '{{ is_collector_docker_stack_name }}'
state: present
compose:
- '{{ is_collector_compose_dir }}/is-collector-docker-compose.yml'

View File

@ -0,0 +1,44 @@
version: '3.6'
networks:
{{ is_collector_docker_network }}:
{{ is_collector_haproxy_public_net }}:
external: true
secrets:
ghn-config-{{ scope_name }}:
external: true
jndi-config-{{ scope_name }}:
external: true
server-config-{{ scope_name }}:
external: true
services:
{{ is_collector_docker_service_server_name }}:
image: {{ is_collector_docker_server_image }}
networks:
- {{ is_collector_docker_network }}
- {{ is_collector_haproxy_public_net }}
secrets:
- source: ghn-config-{{ scope_name }}
target: /home/gcube/gCore/config/GHNConfig.xml
mode: 0444
- source: jndi-config-{{ scope_name }}
target: /home/gcube/gCore/etc/is-collector-service/jndi-config.xml
mode: 0444
- source: server-config-{{ scope_name }}
target: /home/gcube/gCore/etc/globus_wsrf_core/server-config.wsdd
mode: 0444
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

@ -0,0 +1,38 @@
IS Registry Role
=========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
-------
BSD
Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<jndiConfig xmlns="http://wsrf.globus.org/jndi/config">
<global>
<environment
name="securityenabled"
value="false"
type="java.lang.Boolean"
override="false" />
<environment
name="accountingenabled"
value="false"
type="java.lang.Boolean"
override="false" />
<environment
name="mode"
value="ROOT"
type="java.lang.String"
override="false" />
<!-- multiple scopes must be separated by a comma (e.g "EM,testing")-->
<environment
name="startScopes"
value="{{ start_scopes }}"
type="java.lang.String"
override="false" />
<environment
name="allowedScopes"
value=""
type="java.lang.String"
override="false" />
<environment
name="infrastructure"
value="{{ infrastructure }}"
type="java.lang.String"
override="false" />
<environment
name="labels"
value="GHNLabels.xml"
type="java.lang.String"
override="false" />
<environment
name="GHNtype"
value="STATIC"
type="java.lang.String"
override="false" />
<environment
name="localProxy"
value="/home/globus/..."
type="java.lang.String"
override="false" />
<environment
name="coordinates"
value="43.719627,10.421626"
type="java.lang.String"
override="false" />
<environment
name="country"
value="it"
type="java.lang.String"
override="false" />
<environment
name="location"
value="Pisa"
type="java.lang.String"
override="false" />
<environment
name="updateInterval"
value="60"
type="java.lang.Long"
override="false" />
<environment
name="trustedGHNSynchInterval"
value="600"
type="java.lang.Long"
override="false" />
</global>
</jndiConfig>

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<jndiConfig xmlns="http://wsrf.globus.org/jndi/config">
<service name="gcube/informationsystem/registry">
<environment name="configDir" value="{{ config_dir }}" type="java.lang.String"
override="false" />
<environment name="startScopes" value="{{ complete_start_scope }}" type="java.lang.String"
override="false" />
</service>
<service name="gcube/informationsystem/registry/ResourceRegistration">
<environment name="name" value="ResourceRegistration" type="java.lang.String"
override="false" />
</service>
<service name="gcube/informationsystem/registry/RegistryFactory">
<environment name="name" value="RegistryFactory" type="java.lang.String"
override="false" />
<environment name="RPDName" value="RegistryFactoryResourceProperties"
type="java.lang.String" override="false" />
<resource name="home"
type="org.gcube.informationsystem.registry.impl.state.RegistryFactoryResourceHome">
<resourceParams>
<parameter>
<name>factory</name>
<value>org.globus.wsrf.jndi.BeanFactory</value>
</parameter>
<parameter>
<name>resourceClass</name>
<value>org.gcube.informationsystem.registry.impl.state.RegistryFactoryResource
</value>
</parameter>
</resourceParams>
</resource>
</service>
</jndiConfig>

View File

@ -0,0 +1,200 @@
<?xml version="1.0"?>
<deployment name="defaultServerConfig" xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd" xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<globalConfiguration>
<parameter name="usageStatisticsTargets" value="usage-stats.globus.org:4810"/>
<parameter name="logicalHost" value="{{ gcore_host }}"/>
<parameter name="publishHostName" value="true"/>
<parameter name="containerThreads" value="2"/>
<parameter name="containerThreadsMax" value="100"/>
<parameter name="sendXsiTypes" value="true"/>
<!-- @CONTAINER_SECURITY_DESCRIPTOR@ -->
<!-- <parameter name="defaultSecurityConfiguration" value="etc/globus_wsrf_core/security_configuration.properties"/>
<parameter name="containerSecDesc" value="etc/globus_wsrf_core/global_security_descriptor.xml"/> -->
<!-- OPERATION PROVIDERS -->
<parameter name="GCUBEProvider" value="org.gcube.common.core.porttypes.GCUBEProvider"/>
<parameter name="GCUBENotificationProvider" value="org.gcube.common.core.porttypes.GCUBENotificationProvider"/>
<parameter name="DestroyProvider" value="org.globus.wsrf.impl.lifetime.DestroyProvider"/>
<parameter name="SetTerminationTimeProvider" value="org.globus.wsrf.impl.lifetime.SetTerminationTimeProvider"/>
<parameter name="GetRPProvider" value="org.globus.wsrf.impl.properties.GetResourcePropertyProvider"/>
<parameter name="GetMRPProvider" value="org.globus.wsrf.impl.properties.GetMultipleResourcePropertiesProvider"/>
<parameter name="SetRPProvider" value="org.globus.wsrf.impl.properties.SetResourcePropertiesProvider"/>
<parameter name="QueryRPProvider" value="org.globus.wsrf.impl.properties.QueryResourcePropertiesProvider"/>
<parameter name="SubscribeProvider" value="org.globus.wsrf.impl.notification.SubscribeProvider"/>
<parameter name="GetCurrentMessageProvider" value="org.globus.wsrf.impl.notification.GetCurrentMessageProvider"/>
<parameter name="PauseSubscriptionProvider" value="org.globus.wsrf.impl.notification.PauseSubscriptionProvider"/>
<parameter name="ResumeSubscriptionProvider" value="org.globus.wsrf.impl.notification.ResumeSubscriptionProvider"/>
<parameter name="NotificationConsumerProvider" value="org.globus.wsrf.impl.notification.NotificationConsumerProvider"/>
<!-- WS Secure Conversation service -->
<parameter name="authenticationService" value="gsi/AuthenticationService"/>
<requestFlow>
<!-- The AddressingHandler must be first -->
<handler type="java:org.globus.wsrf.handlers.AddressingHandler"/>
<!-- The URLMapper must be second -->
<handler type="java:org.globus.wsrf.handlers.URLMapper"/>
<!-- @TOMCAT_SEC_HANDLER@ -->
<!-- The AuthenticationServiceHandler must be third -->
<handler type="AuthenticationServiceHandler"/>
<handler type="java:org.globus.wsrf.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.wssec.WSSecurityHandler"/>
</handler>
<handler type="java:org.globus.wsrf.impl.security.authentication.SecurityPolicyHandler"/>
<handler type="java:org.globus.wsrf.impl.security.authorization.AuthorizationHandler"/>
<handler type="java:org.gcube.common.handlers.GCUBEHandler"/>
<!-- The FaultHandler must be last -->
<handler type="java:org.globus.wsrf.handlers.FaultHandler"/>
</requestFlow>
<responseFlow>
<!-- The WSDLHandler must be first -->
<handler type="java:org.globus.wsrf.handlers.WSDLHandler"/>
<handler type="java:org.globus.wsrf.handlers.AddressingHandler"/>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.securemsg.X509EncryptHandler"/>
</handler>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.securemsg.X509SignHandler"/>
</handler>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.UsernameHandler"/>
</handler>
<handler type="java:org.apache.axis.handlers.JAXRPCHandler">
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.secureconv.GSSHandler"/>
</handler>
<handler type="java:org.globus.wsrf.handlers.MessageLoggingHandler"/>
<handler type="java:org.gcube.common.handlers.GCUBEHandler"/>
</responseFlow>
</globalConfiguration>
<handler name="RPCDispatcher" type="java:org.apache.axis.providers.java.RPCProvider"/>
<handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="MsgDispatcher" type="java:org.apache.axis.providers.java.MsgProvider"/>
<handler name="LocalRequester" type="java:org.globus.axis.transport.local.LocalRequester"/>
<handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
<handler name="logger" type="java:org.apache.axis.handlers.LogHandler"/>
<handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
<handler name="AuthenticationServiceHandler" type="java:org.globus.wsrf.impl.security.authentication.secureconv.service.AuthenticationServiceHandler"/>
<!--<service name="AdminService" provider="java:MSG">
<namespace>http://xml.apache.org/axis/wsdd/</namespace>
<parameter name="allowedMethods" value="AdminService"/>
<parameter name="enableRemoteAdmin" value="false"/>
<parameter name="className" value="org.apache.axis.utils.Admin"/>
</service>-->
<!--<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>-->
<service name="NotificationConsumerService" provider="Handler" style="document" use="literal">
<parameter name="allowedMethods" value="*"/>
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
<parameter name="className" value="org.globus.wsrf.impl.notification.NotificationConsumerProvider"/>
<wsdlFile>share/schema/core/notification/notification_consumer_service.wsdl</wsdlFile>
<typeMapping deserializer="org.apache.axis.encoding.ser.ElementDeserializerFactory" encodingStyle="" qname="xsd:anyType" type="java:java.lang.Object" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" name="ResourcePropertyValueChangeNotificationElementType" qname="ns1:ResourcePropertyValueChangeNotificationElementType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.globus.wsrf.core.notification.ResourcePropertyValueChangeNotificationElementType" xmlns:ns1="http://wsrf.globus.org/core/notification"/>
</service>
<service name="SubscriptionManagerService" provider="Handler" style="document" use="literal">
<parameter name="allowedMethods" value="*"/>
<parameter name="scope" value="Application"/>
<parameter name="providers" value="DestroyProvider SetTerminationTimeProvider GetRPProvider PauseSubscriptionProvider"/>
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
<parameter name="className" value="org.globus.wsrf.impl.notification.ResumeSubscriptionProvider"/>
<wsdlFile>share/schema/core/notification/subscription_manager_service.wsdl</wsdlFile>
</service>
<service name="gsi/AuthenticationService" provider="Handler" style="document" use="literal">
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="org.globus.wsrf.impl.security.authentication.secureconv.service.AuthenticationServiceImpl"/>
<wsdlFile>share/schema/core/security/secconv/secure_conversation_service.wsdl</wsdlFile>
</service>
<!--<service name="ShutdownService" provider="java:RPC" style="document" use="literal">
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="org.globus.wsrf.container.ShutdownService"/>
<wsdlFile>share/schema/core/management/shutdown_service.wsdl</wsdlFile>
<parameter name="securityDescriptor" value="org/globus/wsrf/impl/security/descriptor/gsi-security-config.xml"/>
</service>-->
<transport name="http">
<parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
<requestFlow>
<handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
</transport>
<transport name="local">
<requestFlow>
<handler type="LocalRequester"/>
</requestFlow>
<responseFlow>
<handler type="LocalResponder"/>
</responseFlow>
</transport>
<transport name="SimpleHTTP">
<requestFlow/>
</transport>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" name="DeleteType" qname="wsrp:DeleteType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.oasis.wsrf.properties.DeleteType"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" name="InsertType" qname="wsrp:InsertType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.oasis.wsrf.properties.InsertType"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" name="UpdateType" qname="wsrp:UpdateType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.oasis.wsrf.properties.UpdateType"/>
<typeMapping deserializer="org.globus.wsrf.encoding.TopicExpressionDeserializerFactory" encodingStyle="" name="TopicExpressionType" qname="wsnt:TopicExpressionType" serializer="org.globus.wsrf.encoding.TopicExpressionSerializerFactory" type="java:org.oasis.wsn.TopicExpressionType"/>
<typeMapping deserializer="org.globus.wsrf.encoding.AnyListDeserializerFactory" encodingStyle="" name=">SetResourceProperties" qname="wsrp:>SetResourceProperties" serializer="org.globus.wsrf.encoding.AnyListSerializerFactory" type="java:org.oasis.wsrf.properties.SetResourceProperties_Element"/>
<typeMapping deserializer="org.globus.wsrf.encoding.QueryExpressionDeserializerFactory" encodingStyle="" name="QueryExpressionType" qname="wsrp:QueryExpressionType" serializer="org.globus.wsrf.encoding.QueryExpressionSerializerFactory" type="java:org.oasis.wsrf.properties.QueryExpressionType"/>
<!-- WS-Addressing Bits -->
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="wsa:EndpointReferenceType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.apache.axis.message.addressing.EndpointReferenceType"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="wsa:ReferencePropertiesType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.apache.axis.message.addressing.ReferencePropertiesType"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle="" qname="wsa:AttributedURI" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" type="java:org.apache.axis.message.addressing.AttributedURI"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle="" qname="wsa:AttributedQName" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" type="java:org.apache.axis.message.addressing.AttributedQName"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle="" qname="wsa:ServiceNameType" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" type="java:org.apache.axis.message.addressing.ServiceNameType"/>
<!-- WS Trust and WS Secure Conversation -->
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:SecurityContextTokenType" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.globus.ws.sc.SecurityContextTokenType" xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/04/sc"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory" encodingStyle="" qname="ns1:BinaryExchangeType" serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory" type="java:org.globus.ws.trust.BinaryExchangeType" xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/04/trust"/>
<!-- GCUBE Faults -->
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:GCUBEUnrecoverableFault" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.gcube.common.core.faults.GCUBEUnrecoverableFault" xmlns:ns1="http://gcube-system.org/namespaces/common/core/faults"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:GCUBERetrySameFault" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.gcube.common.core.faults.GCUBERetrySameFault" xmlns:ns1="http://gcube-system.org/namespaces/common/core/faults"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="" qname="ns1:GCUBERetryEquivalentFault" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" type="java:org.gcube.common.core.faults.GCUBERetryEquivalentFault" xmlns:ns1="http://gcube-system.org/namespaces/common/core/faults"/>
</deployment>

View File

@ -0,0 +1,2 @@
localhost

View File

@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- is-registry

View File

@ -0,0 +1,8 @@
---
# vars file for is-registry
py3_env_install: True
py3_env_pip_pkgs:
- docker-compose
- docker
- jsondiff
ansible_python_interpreter: /usr/bin/python3