split library/roles
This commit is contained in:
parent
c047873c6e
commit
4870ab4789
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
authorization_service_install: False
|
|
||||||
authorization_service_upgrade: False
|
|
||||||
authorization_service_name: authorization-service
|
|
||||||
#authorization_service_file: '{{ authorization_service_name }}-2.0.0-20160927.120833-1.war'
|
|
||||||
#authorization_service_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-snapshots/org/gcube/common/authorization-service/2.0.0-SNAPSHOT/{{ authorization_service_file }}'
|
|
||||||
authorization_service_file: '{{ authorization_service_name }}-2.0.2-4.11.0-164657.war'
|
|
||||||
authorization_service_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-staging/org/gcube/common/authorization-service/2.0.2-4.11.0-164657/{{ authorization_service_file }}'
|
|
||||||
authorization_service_persistence_dest: WEB-INF/classes/META-INF/persistence.xml
|
|
||||||
authorization_service_config_dest: WEB-INF/AuthorizationConfiguration.xml
|
|
||||||
auth_user: '{{ d4science_user }}'
|
|
||||||
authorization_service_loglevel: INFO
|
|
||||||
authorization_service_root_loglevel: WARN
|
|
||||||
authorization_service_http_port: 8080
|
|
||||||
authorized_ips:
|
|
||||||
- 127.0.0.1
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
- name: Restart the authorization service
|
|
||||||
service: name='tomcat-instance-{{ authorization_service_http_port }}' state=restarted
|
|
||||||
when: authorization_service_install
|
|
||||||
|
|
||||||
- name: Stop the authorization service
|
|
||||||
service: name='tomcat-instance-{{ authorization_service_http_port }}' state=stopped
|
|
||||||
|
|
||||||
- name: Start the authorization service
|
|
||||||
service: name='tomcat-instance-{{ authorization_service_http_port }}' state=started
|
|
||||||
when: authorization_service_install
|
|
|
@ -1,4 +0,0 @@
|
||||||
---
|
|
||||||
dependencies:
|
|
||||||
- ../../library/roles/tomcat-multiple-instances
|
|
||||||
- ../../library/roles/nginx
|
|
|
@ -1,48 +0,0 @@
|
||||||
---
|
|
||||||
- block:
|
|
||||||
- name: Stop the service when upgrading
|
|
||||||
#service: name='tomcat-instance-{{ authorization_http_port }}' state=stopped
|
|
||||||
service: name=tomcat-instance-8080 state=stopped
|
|
||||||
when: authorization_service_upgrade
|
|
||||||
|
|
||||||
- name: Remove the installed authorization service before upgrading
|
|
||||||
file: dest={{ item }} state=absent
|
|
||||||
with_items:
|
|
||||||
- '{{ auth_instance_path }}/webapps/authorization-service'
|
|
||||||
- '{{ auth_instance_path }}/webapps/authorization-service.war'
|
|
||||||
when: authorization_service_upgrade or not authorization_service_install
|
|
||||||
|
|
||||||
# - name: Get the authorization service war file
|
|
||||||
# get_url: url={{ authorization_service_url }} dest={{ auth_instance_path }}/webapps/{{ authorization_service_file }}
|
|
||||||
|
|
||||||
# - name: Unpack the authorization service war file
|
|
||||||
# shell: mkdir {{ auth_instance_path }}/webapps/authorization-service ; cd {{ auth_instance_path }}/webapps/authorization-service ; jar xf {{ auth_instance_path }}/webapps/{{ authorization_service_file }}
|
|
||||||
# args:
|
|
||||||
# creates: '{{ auth_instance_path }}/webapps/authorization-service/WEB-INF/AuthorizationConfiguration.xml'
|
|
||||||
|
|
||||||
- name: Create the authorization service webapp directory
|
|
||||||
file: dest={{ auth_instance_path }}/webapps/authorization-service state=directory
|
|
||||||
|
|
||||||
- name: Get and unpack the authorization war file
|
|
||||||
unarchive: copy=no src={{ authorization_service_url }} dest={{ auth_instance_path }}/webapps/authorization-service
|
|
||||||
args:
|
|
||||||
creates: '{{ auth_instance_path }}/webapps/authorization-service/WEB-INF/AuthorizationConfiguration.xml'
|
|
||||||
|
|
||||||
- name: Install the authorization service AuthorizationConfiguration.xml template
|
|
||||||
template: src=AuthorizationConfiguration.xml.j2 dest={{ auth_instance_path }}/webapps/authorization-service/{{ authorization_service_config_dest }} mode=0440
|
|
||||||
notify: Restart the authorization service
|
|
||||||
tags: [ 'authorization_service', 'authorization_service_conf', 'tomcat' ]
|
|
||||||
|
|
||||||
- name: Install the authorization service persistence.xml template
|
|
||||||
template: src=persistence.xml.j2 dest={{ auth_instance_path }}/webapps/authorization-service/{{ authorization_service_persistence_dest }} mode=0440
|
|
||||||
notify: Restart the authorization service
|
|
||||||
tags: [ 'authorization_service', 'authorization_service_conf', 'tomcat' ]
|
|
||||||
|
|
||||||
- name: Install the logback configuration
|
|
||||||
template: src=logback.xml.j2 dest={{ auth_instance_path }}/lib/logback.xml mode=0644
|
|
||||||
notify: Restart the authorization service
|
|
||||||
|
|
||||||
become: True
|
|
||||||
become_user: '{{ auth_user }}'
|
|
||||||
when: authorization_service_install
|
|
||||||
tags: [ 'authorization_service', 'tomcat' ]
|
|
|
@ -1,26 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
||||||
<Configuration>
|
|
||||||
<Rule path="/token/user" requiresToken="false">
|
|
||||||
{% for ip in authorized_ips %}
|
|
||||||
<Entity type="IP" value="{{ ip }}" />
|
|
||||||
{% endfor %}
|
|
||||||
</Rule>
|
|
||||||
|
|
||||||
<Rule path="/apikey" requiresToken="true" acceptedTokenTypes="USER"/>
|
|
||||||
<Rule path="/policyManager" requiresToken="true">
|
|
||||||
{% for ip in authorized_ips %}
|
|
||||||
<Entity type="IP" value="{{ ip }}" />
|
|
||||||
{% endfor %}
|
|
||||||
</Rule>
|
|
||||||
<Rule path="/token/external" requiresToken="true" acceptedTokenTypes="USER" />
|
|
||||||
<Rule path="/token/node" requiresToken="false" />
|
|
||||||
<Rule path="/token/service" requiresToken="true" acceptedTokenTypes="CONTAINER"/>
|
|
||||||
<Rule path="/token/resolve" requiresToken="false">
|
|
||||||
{% if authorized_ips is defined %}
|
|
||||||
{% for ip in authorized_ips %}
|
|
||||||
<Entity type="IP" value="{{ ip }}" />
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
</Rule>
|
|
||||||
</Configuration>
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
|
|
||||||
<configuration>
|
|
||||||
|
|
||||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<file>${catalina.base}/logs/ghn.log</file>
|
|
||||||
<append>true</append>
|
|
||||||
<encoder>
|
|
||||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{0}: %msg%n
|
|
||||||
</pattern>
|
|
||||||
</encoder>
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
||||||
<fileNamePattern>${catalina.base}/logs/ghn.%d{yyyy-MM-dd}.log</fileNamePattern>
|
|
||||||
<maxHistory>30</maxHistory>
|
|
||||||
</rollingPolicy>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<logger name="org.gcube" level="{{ authorization_service_loglevel }}" />
|
|
||||||
<logger name="org.gcube.common.authorizationservice" level="{{ authorization_service_loglevel }}" />
|
|
||||||
<logger name="org.gcube.common" level="{{ authorization_service_loglevel }}" />
|
|
||||||
|
|
||||||
<root level="{{ authorization_service_root_loglevel }}">
|
|
||||||
<appender-ref ref="FILE" />
|
|
||||||
</root>
|
|
||||||
</configuration>
|
|
|
@ -1,33 +0,0 @@
|
||||||
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
|
|
||||||
version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">
|
|
||||||
|
|
||||||
<!-- change here if you want name of unit different -->
|
|
||||||
<persistence-unit name="authorization" transaction-type="RESOURCE_LOCAL">
|
|
||||||
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
|
|
||||||
|
|
||||||
<!-- Converters -->
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.converters.StringListConverter</class>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Entities -->
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.AuthorizationEntity</class>
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.ServiceAuthorizationEntity</class>
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.UserAuthorizationEntity</class>
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.ExternalServiceAuthorizationEntity</class>
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.NodeAuthorizationEntity</class>
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.PolicyEntity</class>
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.ServicePolicyEntity</class>
|
|
||||||
<class>org.gcube.common.authorizationservice.persistence.entities.UserPolicyEntity</class>
|
|
||||||
<properties>
|
|
||||||
<property name="javax.persistence.jdbc.url"
|
|
||||||
value="jdbc:postgresql://{{ auth_postgresql_host }}/{{ psql_db_name }}" />
|
|
||||||
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
|
|
||||||
<property name="javax.persistence.jdbc.user" value="{{ psql_db_user }}" />
|
|
||||||
<property name="javax.persistence.jdbc.password" value="{{ authorization_db_pwd }}" />
|
|
||||||
<property name="eclipselink.ddl-generation" value="create-tables" />
|
|
||||||
<property name="eclipselink.ddl-generation.output-mode"
|
|
||||||
value="database" />
|
|
||||||
</properties>
|
|
||||||
</persistence-unit>
|
|
||||||
</persistence>
|
|
|
@ -1,28 +0,0 @@
|
||||||
---
|
|
||||||
repo: "gcube-staging"
|
|
||||||
#ghn_distribution_version: "7.0.0-4.2.1-132334"
|
|
||||||
ghn_distribution_bundle_version: "7.0.0-4.2.1-132334"
|
|
||||||
|
|
||||||
#### this gets the latest version in the specified repo
|
|
||||||
#globus_url: "http://maven.research-infrastructures.eu/nexus/service/local/artifact/maven/redirect?r={{ repo }}&g=org/gcube/distribution&a=ghn-distribution&v=LATEST&e=tar.gz"
|
|
||||||
|
|
||||||
#### this is for the ghn-distribution-bundle
|
|
||||||
#globus_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/distribution/ghn-distribution-bundle/{{ ghn_distribution_bundle_version }}/ghn-distribution-bundle-{{ ghn_distribution_bundle_version }}-bundle.tar.gz"
|
|
||||||
|
|
||||||
globus_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/distribution/ghn-distribution/{{ ghn_distribution_bundle_version }}/ghn-distribution-{{ ghn_distribution_bundle_version }}.tar.gz"
|
|
||||||
ant_url: 'http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.tar.gz'
|
|
||||||
|
|
||||||
ghn_user: 'gCore'
|
|
||||||
globus_location: "/opt/{{ ghn_user }}"
|
|
||||||
ant_location: '/opt/ant/'
|
|
||||||
|
|
||||||
ghn_port: 8080
|
|
||||||
ghn_hostname: "{{ ansible_hostname }}"
|
|
||||||
ghn_published_host: "{{ ghn_hostname }}:{{ ghn_port }}"
|
|
||||||
|
|
||||||
gcube_key: 'd4s.gcubekey'
|
|
||||||
servicemap_xmlfile: 'ServiceMap_d4s.xml'
|
|
||||||
servicemap_endpoint: "{{ ghn_published_host }}"
|
|
||||||
|
|
||||||
common_scope_maps_file: "common-scope-maps-1.0.4-4.2.0-128425-patched.jar"
|
|
||||||
patch_common_scope: 0
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
<EFBFBD><03><><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD>2<02>$
|
|
|
@ -1,2 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- role: java-17
|
|
|
@ -1,66 +0,0 @@
|
||||||
- name: add ghn user #home is /opt/ghn/, password is "gCore??"
|
|
||||||
action: user name={{ ghn_user }} password=$1$SuG4r$6AGiUoMKjZAHFJgYLDTkW/ shell=/bin/bash createhome=yes home={{ globus_location }}
|
|
||||||
|
|
||||||
- name: download and extract ghn release specified in '../defaults/main.yml'
|
|
||||||
unarchive: src='{{ globus_url }}' dest="{{ globus_location }}" copy=no extra_opts='--strip-components=1'
|
|
||||||
#unarchive: src='{{ globus_url }}' dest="{{ globus_location }}" copy=no extra_opts='--show-stored-names --strip-components=1'
|
|
||||||
#unarchive: src='http://dl.uxnr.de/mirror/curl/curl-7.52.1.tar.gz' dest="{{ globus_location }}" copy=no
|
|
||||||
|
|
||||||
- name: Test if ant is already deployed
|
|
||||||
raw: ls -d {{ ant_location }}
|
|
||||||
register: is_ant_deployed
|
|
||||||
ignore_errors: True
|
|
||||||
tags:
|
|
||||||
- ant
|
|
||||||
|
|
||||||
- name: create ant_location as defined in '../defaults/main.yml'
|
|
||||||
file: path={{ ant_location }} state=directory owner=root group=root mode=0755
|
|
||||||
when: is_ant_deployed.rc != 0
|
|
||||||
tags:
|
|
||||||
- ant
|
|
||||||
|
|
||||||
- name: install apache ant
|
|
||||||
unarchive: src={{ ant_url }} dest={{ ant_location }} copy=no extra_opts='--strip-components=1'
|
|
||||||
#unarchive: src={{ ant_url }} dest={{ ant_location }} copy=no extra_opts='--show-stored-names --strip-components=1'
|
|
||||||
when: is_ant_deployed.rc != 0
|
|
||||||
tags:
|
|
||||||
- ant
|
|
||||||
|
|
||||||
- name: upload the gcube key specified in '../defaults/main.yml'
|
|
||||||
copy: src={{ gcube_key }} dest={{ globus_location }}/config/ mode=0600
|
|
||||||
|
|
||||||
- name: upload ghn start script
|
|
||||||
template: src=gcore-start.sh dest={{ globus_location }} mode=0700
|
|
||||||
|
|
||||||
- name: copy custom servicemap files
|
|
||||||
template: src=ServiceMap_d4s.xml dest={{ globus_location }}/config/
|
|
||||||
when: patch_common_scope != 0
|
|
||||||
|
|
||||||
- name: copy custom servicemap files
|
|
||||||
template: src=ServiceMap_d4stesting.xml dest={{ globus_location }}/config/
|
|
||||||
when: patch_common_scope != 0
|
|
||||||
|
|
||||||
- name: patch_common_scope={{ patch_common_scope }}, removing bundled common-scope-maps
|
|
||||||
raw: rm -f {{ globus_location }}/lib/common-scope-maps*
|
|
||||||
when: patch_common_scope != 0
|
|
||||||
ignore_errors: True
|
|
||||||
tags:
|
|
||||||
- common_scope_maps
|
|
||||||
|
|
||||||
- name: upload patched common-scope-maps
|
|
||||||
copy: src={{ common_scope_maps_file }} dest={{ globus_location }}/lib/ owner={{ ghn_user }} group={{ ghn_user }} mode=0644
|
|
||||||
when: patch_common_scope != 0
|
|
||||||
tags:
|
|
||||||
- common_scope_maps
|
|
||||||
|
|
||||||
- name: upload d4s.authorization
|
|
||||||
template: src=d4s.authorization dest={{ globus_location }}/config/ mode=0644
|
|
||||||
|
|
||||||
- name: restore ownership
|
|
||||||
file: dest={{ globus_location }} owner={{ ghn_user }} group={{ ghn_user }} recurse=yes
|
|
||||||
|
|
||||||
# this is commented out since at this point no service has been deployed yet
|
|
||||||
#- name: start the container
|
|
||||||
# become: yes
|
|
||||||
# become_user: "{{ ghn_user }}"
|
|
||||||
# command: "{{ globus_location }}/gcore-start.sh"
|
|
|
@ -1,6 +0,0 @@
|
||||||
<ServiceMap>
|
|
||||||
<Service name ="ISICAllQueryPT" endpoint ="http://{{ servicemap_endpoint }}/wsrf/services/gcube/informationsystem/collector/XQueryAccess"/>
|
|
||||||
<Service name ="ISICAllRegistrationPT" endpoint ="http://{{ servicemap_endpoint }}/wsrf/services/gcube/informationsystem/collector/Sink"/>
|
|
||||||
<Service name ="ISICAllCollectionPT" endpoint ="http://{{ servicemap_endpoint }}/wsrf/services/gcube/informationsystem/collector/wsdaix/XMLCollectionAccess"/>
|
|
||||||
<Service name ="ISICAllStoragePT" endpoint ="http://{{ servicemap_endpoint }}/wsrf/services/gcube/informationsystem/collector/XMLStorageAccess"/>
|
|
||||||
</ServiceMap>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<ServiceMap>
|
|
||||||
<Service name ="ISICAllQueryPT" endpoint ="http://{{ servicemap_endpoint_testing }}/wsrf/services/gcube/informationsystem/collector/XQueryAccess"/>
|
|
||||||
<Service name ="ISICAllRegistrationPT" endpoint ="http://{{ servicemap_endpoint_testing }}/wsrf/services/gcube/informationsystem/collector/Sink"/>
|
|
||||||
<Service name ="ISICAllCollectionPT" endpoint ="http://{{ servicemap_endpoint_testing }}/wsrf/services/gcube/informationsystem/collector/wsdaix/XMLCollectionAccess"/>
|
|
||||||
<Service name ="ISICAllStoragePT" endpoint ="http://{{ servicemap_endpoint_testing }}/wsrf/services/gcube/informationsystem/collector/XMLStorageAccess"/>
|
|
||||||
</ServiceMap>
|
|
|
@ -1 +0,0 @@
|
||||||
# example: registry={{ COMMON_NPM_MIRROR_URL }}
|
|
|
@ -1 +0,0 @@
|
||||||
<authorization-endpoint priority="1" infrastructure="d4s"><host>{{ authorization_hostname }}</host><secure>false</secure><port>{{ authorization_port }}</port></authorization-endpoint>
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
export GLOBUS_LOCATION={{ globus_location }}
|
|
||||||
export PATH=$PATH:$GLOBUS_LOCATION/bin
|
|
||||||
export ANT_HOME={{ ant_location }}
|
|
||||||
|
|
||||||
nohup {{ globus_location }}/bin/gcore-start-container -p {{ ghn_port }}
|
|
|
@ -1,21 +0,0 @@
|
||||||
---
|
|
||||||
# recent versions of eXist setup do not allow for a quiet installation, therefore we switch to the
|
|
||||||
# last known working version
|
|
||||||
#exist_url: 'https://bintray.com/existdb/releases/download_file?file_path=eXist-db-setup-2.2.jar'
|
|
||||||
exist_jar: 'eXist-setup-1.2.6-rev9165.jar'
|
|
||||||
exist_url: "http://downloads.sourceforge.net/project/exist/Stable/1.2/{{ exist_jar }}"
|
|
||||||
exist_location: "{{ globus_location }}/exist/"
|
|
||||||
|
|
||||||
repo: "gcube-staging"
|
|
||||||
#collector_version: "3.0.2-4.1.0-126944"
|
|
||||||
is_collector_service_version: "3.0.2-4.1.0-126944"
|
|
||||||
collector_artifact: "is-collector-service-{{ is_collector_service_version }}"
|
|
||||||
collector_gar: "{{ collector_artifact }}.gar"
|
|
||||||
collector_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/informationsystem/is-collector-service/{{ is_collector_service_version }}/{{ collector_gar }}"
|
|
||||||
|
|
||||||
collector_hostname: "d4s.res.eng.it"
|
|
||||||
collector_port: "8099"
|
|
||||||
collector_endpoint: "{{ collector_hostname }}:{{ collector_port }}"
|
|
||||||
|
|
||||||
start_scopes: ''
|
|
||||||
infrastructure: 'd4s'
|
|
|
@ -1,2 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- role: gcore-base
|
|
|
@ -1,73 +0,0 @@
|
||||||
- name: download eXist DB
|
|
||||||
get_url: url={{ exist_url }} dest=/tmp force=yes
|
|
||||||
|
|
||||||
- name: create exist_location as defined in '../defaults/main.yml'
|
|
||||||
file: path={{ exist_location }} state=directory owner={{ ghn_user }} group={{ ghn_user }} mode=0755
|
|
||||||
|
|
||||||
- name: install eXist DB
|
|
||||||
command: "java -jar /tmp/{{ exist_jar }} -p {{ exist_location }}"
|
|
||||||
|
|
||||||
- name: remove eXist setup jar
|
|
||||||
file: path="/tmp/{{ exist_jar }}" state=absent
|
|
||||||
|
|
||||||
- name: add the EXIST_HOME parameter to the gcore startup script
|
|
||||||
lineinfile: dest="{{ globus_location }}/gcore-start.sh" insertafter="^export ANT_HOME" state=present line="export EXIST_HOME={{ exist_location }}"
|
|
||||||
|
|
||||||
# remotely using with_fileglob seems to give all sorts of issues
|
|
||||||
# while using copy module is out of question since it's not
|
|
||||||
# capable of using wildcards, hence we'll use the shell module
|
|
||||||
# when there's a need to use wildcards in filenames
|
|
||||||
#- name: copy exist libs in "{{ globus_location }}/lib/"
|
|
||||||
# copy: src={{ item }} dest="{{ globus_location }}/lib/" remote_src=true
|
|
||||||
# with_fileglob:
|
|
||||||
# - "{{ exist_location}}/exist.jar"
|
|
||||||
# - "{{ exist_location}}/lib/core/quartz-*.jar"
|
|
||||||
# - "{{ exist_location}}/lib/core/xmlrpc-*"
|
|
||||||
# - "{{ exist_location}}/lib/core/xmldb.jar"
|
|
||||||
# - "{{ exist_location}}/lib/core/jta.jar"
|
|
||||||
# - "{{ exist_location}}/lib/core/commons-pool-*.jar"
|
|
||||||
|
|
||||||
- name: copy exist.jar in $GLOBUS_LOCATION/lib
|
|
||||||
copy: src="{{ exist_location}}/exist.jar" dest="{{ globus_location }}/lib/" remote_src=true
|
|
||||||
|
|
||||||
- name: copy quartz jar in $GLOBUS_LOCATION/lib
|
|
||||||
shell: cp -R {{ exist_location}}/lib/core/quartz-*.jar {{ globus_location }}/lib/
|
|
||||||
|
|
||||||
- name: copy xmlrpc-* in $GLOBUS_LOCATION/lib
|
|
||||||
shell: cp -R {{ exist_location}}/lib/core/xmlrpc-* {{ globus_location }}/lib/
|
|
||||||
|
|
||||||
- name: copy xmldb in $GLOBUS_LOCATION/lib
|
|
||||||
copy: src="{{ exist_location}}/lib/core/xmldb.jar" dest="{{ globus_location }}/lib/" remote_src=true
|
|
||||||
|
|
||||||
- name: copy jta.jar in $GLOBUS_LOCATION/lib
|
|
||||||
copy: src="{{ exist_location}}/lib/core/jta.jar" dest="{{ globus_location }}/lib/" remote_src=true
|
|
||||||
|
|
||||||
- name: copy commons-pool-*.jar in $GLOBUS_LOCATION/lib
|
|
||||||
shell: cp -R {{ exist_location}}/lib/core/commons-pool-*.jar {{ globus_location }}/lib/
|
|
||||||
|
|
||||||
- name: download is-collector-service.gar
|
|
||||||
get_url: url={{ collector_url }} dest=/tmp force=yes
|
|
||||||
|
|
||||||
- name: deploy is-collector-service.gar
|
|
||||||
shell: export GLOBUS_LOCATION={{ globus_location }} ANT_HOME={{ ant_location }} && {{ globus_location }}/bin/gcore-deploy-service /tmp/{{ collector_gar }}
|
|
||||||
|
|
||||||
- name: add GLOBUS_OPTIONS to the gcore startup script
|
|
||||||
lineinfile: dest="{{ globus_location }}/gcore-start.sh" insertafter="^export EXIST_HOME" state=present line='export GLOBUS_OPTIONS="-Xms512M -Xmx1024M -Dexist.home=$EXIST_HOME"'
|
|
||||||
|
|
||||||
- name: set logicalhost parameter on {{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd
|
|
||||||
replace: dest="{{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd" regexp='localhost' replace="{{ collector_hostname }}"
|
|
||||||
|
|
||||||
- name: copy updated GHNConfig.xml
|
|
||||||
template: src=GHNConfig.xml dest={{ globus_location }}/config/
|
|
||||||
|
|
||||||
- name: updated is-collector-service jndi-config.xml, add start scopes
|
|
||||||
lineinfile: dest="{{ globus_location }}/etc/{{ collector_artifact }}/jndi-config.xml" insertafter='.*?<service name="gcube/informationsystem/collector">' state=present line=" <environment name=\"startScopes\" value=\"/{{ infrastructure }}/{{ start_scopes }}\" type=\"java.lang.String\" override=\"false\" />"
|
|
||||||
when: start_scopes != ""
|
|
||||||
|
|
||||||
- name: restore ownership
|
|
||||||
file: dest={{ globus_location }} owner={{ ghn_user }} group={{ ghn_user }} recurse=yes
|
|
||||||
|
|
||||||
- name: start gCore
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ ghn_user }}"
|
|
||||||
shell: "{{ globus_location }}/gcore-start.sh"
|
|
|
@ -1,87 +0,0 @@
|
||||||
<?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="{{ 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" />
|
|
||||||
|
|
||||||
<!-- Test PublishedHost -->
|
|
||||||
<environment
|
|
||||||
name="publishedHost"
|
|
||||||
value="{{ collector_hostname }}"
|
|
||||||
type="java.lang.String"
|
|
||||||
override="false" />
|
|
||||||
<!-- Test PublishedPort -->
|
|
||||||
<environment
|
|
||||||
name="publishedPort"
|
|
||||||
value="{{ collector_port }}"
|
|
||||||
type="java.lang.Integer"
|
|
||||||
override="false" />
|
|
||||||
|
|
||||||
</global>
|
|
||||||
</jndiConfig>
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
repo: "gcube-staging"
|
|
||||||
notifier_version: "1.4.0-4.1.0-126911"
|
|
||||||
notifier_artifact: "notifier-service-{{ notifier_version }}"
|
|
||||||
notifier_gar: "{{ notifier_artifact }}.gar"
|
|
||||||
notifier_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/informationsystem/notifier-service/{{ notifier_version }}/{{ notifier_gar }}"
|
|
||||||
|
|
||||||
notifier_hostname: "d4s.res.eng.it"
|
|
||||||
notifier_port: "d4s.res.eng.it"
|
|
||||||
notifier_endpoint: "{{ notifier_hostname }}:{{ notifier_port }}"
|
|
||||||
|
|
||||||
start_scopes: ''
|
|
||||||
infrastructure: 'd4s'
|
|
|
@ -1,2 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- role: gcore-base
|
|
|
@ -1,26 +0,0 @@
|
||||||
- name: download {{ notifier_gar }}
|
|
||||||
get_url: url={{ notifier_url }} dest=/tmp force=yes
|
|
||||||
|
|
||||||
- name: deploy {{ notifier_gar }}
|
|
||||||
shell: export GLOBUS_LOCATION={{ globus_location }} ANT_HOME={{ ant_location }} && {{ globus_location }}/bin/gcore-deploy-service /tmp/{{ notifier_gar }}
|
|
||||||
|
|
||||||
- name: add GLOBUS_OPTIONS to the gcore startup script
|
|
||||||
lineinfile: dest="{{ globus_location }}/gcore-start.sh" insertbefore="^nohup" state=present line='export GLOBUS_OPTIONS="-Xms512M -Xmx1024M"'
|
|
||||||
|
|
||||||
- name: copy updated GHNConfig.xml
|
|
||||||
template: src=GHNConfig.xml dest={{ globus_location }}/config/
|
|
||||||
|
|
||||||
## despite what the documentation says, seems there's no need to specify starting scopes for the notifier to work correctly
|
|
||||||
#- name: copy updated notifier-service jndi-config.xml
|
|
||||||
# template: src=jndi-config.xml dest={{ globus_location }}/etc/{{ notifier_artifact }}/
|
|
||||||
|
|
||||||
- name: set logicalhost parameter on {{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd
|
|
||||||
replace: dest="{{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd" regexp='localhost' replace="{{ notifier_hostname }}"
|
|
||||||
|
|
||||||
- name: restore ownership
|
|
||||||
file: dest={{ globus_location }} owner={{ ghn_user }} group={{ ghn_user }} recurse=yes
|
|
||||||
|
|
||||||
- name: start gCore
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ ghn_user }}"
|
|
||||||
shell: "{{ globus_location }}/gcore-start.sh"
|
|
|
@ -1,85 +0,0 @@
|
||||||
<?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="{{ 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" />
|
|
||||||
<!-- Test PublishedHost -->
|
|
||||||
<environment
|
|
||||||
name="publishedHost"
|
|
||||||
value="{{ notifier_hostname }} "
|
|
||||||
type="java.lang.String"
|
|
||||||
override="false" />
|
|
||||||
<!-- Test PublishedPort -->
|
|
||||||
<environment
|
|
||||||
name="publishedPort"
|
|
||||||
value="{{ notifier_port }}"
|
|
||||||
type="java.lang.Integer"
|
|
||||||
override="false" />
|
|
||||||
</global>
|
|
||||||
</jndiConfig>
|
|
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
repo: "gcube-staging"
|
|
||||||
portal_version: "4.1.0-4.2.0-133176"
|
|
||||||
portal_bundle: "gcube-portal-bundle-{{ portal_version }}.tar.gz"
|
|
||||||
portal_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/distribution/gcube-portal-bundle/{{ portal_version }}/{{ portal_bundle }}"
|
|
||||||
|
|
||||||
portal_user: "gCore"
|
|
||||||
portal_home: "/opt/{{ portal_user }}"
|
|
||||||
|
|
||||||
gcube_key: 'd4s.gcubekey'
|
|
||||||
tomcat_port: "8080"
|
|
||||||
|
|
||||||
common_scope_maps_file: "common-scope-maps-1.0.4-4.2.0-128425-patched.jar"
|
|
||||||
patch_common_scope: 0
|
|
||||||
|
|
||||||
start_scopes: ''
|
|
||||||
infrastructure: 'd4s'
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
<EFBFBD><03><><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD>2<02>$
|
|
|
@ -1,2 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- role: java-17
|
|
|
@ -1,69 +0,0 @@
|
||||||
- name: add portal user #default home is /opt/ghn-portal/, password is "gCore??"
|
|
||||||
action: user name={{ portal_user }} password=$1$SuG4r$6AGiUoMKjZAHFJgYLDTkW/ shell=/bin/bash createhome=yes home={{ portal_home }}
|
|
||||||
|
|
||||||
- name: download and extract {{ portal_bundle }} as specified in '../defaults/main.yml'
|
|
||||||
unarchive: src={{ portal_url }} dest={{ portal_home }} copy=no #extra_opts='--show-stored-names --strip-components=1'
|
|
||||||
|
|
||||||
- name: upload the gcube key specified in '../defaults/main.yml'
|
|
||||||
copy: src={{ gcube_key }} dest="{{ portal_home }}/gCube/keys/" mode=0600
|
|
||||||
|
|
||||||
- name: retrieve tomcat path
|
|
||||||
shell: ls -d {{ portal_home }}/tomcat*
|
|
||||||
register: tomcat_path
|
|
||||||
|
|
||||||
#### since this role deploys from scratch, there's no way to actually patch the common-scope-maps that's
|
|
||||||
#### deployed from within the resource-management webapp for now, since the very same webapp hasn't been
|
|
||||||
#### deployed yet
|
|
||||||
#- name: retrieve resource-management webapp path
|
|
||||||
# shell: ls -d {{ portal_home }}/tomcat*/webapps/resource-management-*/
|
|
||||||
# register: resource_management_path
|
|
||||||
# ignore_errors: True
|
|
||||||
|
|
||||||
- name: upload configured infrastructure.properties
|
|
||||||
template: src="infrastructureproperties" dest="{{ tomcat_path.stdout }}/conf/infrastructure.properties" mode=0700
|
|
||||||
|
|
||||||
- name: updload portal-ext.properties
|
|
||||||
template: src="portal-ext.properties" dest="{{ tomcat_path.stdout }}/webapps/ROOT/WEB-INF/classes/"
|
|
||||||
|
|
||||||
- name: upload .bashrc to {{ portal_user }}
|
|
||||||
template: src=bashrc dest="{{ portal_home }}/.bashrc" mode=0644
|
|
||||||
|
|
||||||
- name: tell tomcat to listen to the tomcat_port variable defined in "../defaults/main.yml"
|
|
||||||
shell: sed -i "s/8080/{{ tomcat_port }}/g" "{{ tomcat_path.stdout }}/conf/server.xml"
|
|
||||||
|
|
||||||
- name: patch_common_scope enabled, removing bundled common-scope-maps
|
|
||||||
raw: rm -f {{ portal_home }}/{{ item }}/common-scope-maps*
|
|
||||||
with_items:
|
|
||||||
- gCube/lib/_fws
|
|
||||||
- lib/fws
|
|
||||||
# - "{{ resource_management_path }}"
|
|
||||||
when: patch_common_scope != 0
|
|
||||||
ignore_errors: True
|
|
||||||
tags:
|
|
||||||
- common_scope_maps
|
|
||||||
|
|
||||||
- name: upload patched common-scope-maps
|
|
||||||
copy: src={{ common_scope_maps_file }} dest={{ portal_home }}/{{ item }}/ owner={{ portal_user }} group={{ portal_user }} mode=0644
|
|
||||||
with_items:
|
|
||||||
- gCube/lib/_fws
|
|
||||||
- lib/fws
|
|
||||||
# - "{{ resource_management_path }}"
|
|
||||||
when: patch_common_scope != 0
|
|
||||||
tags:
|
|
||||||
- common_scope_maps
|
|
||||||
|
|
||||||
- name: upload d4s.authorization
|
|
||||||
template: src=d4s.authorization dest={{ item }} owner={{ portal_user }} group={{ portal_user }} mode=0644
|
|
||||||
with_items:
|
|
||||||
- "{{ portal_home }}/lib/"
|
|
||||||
- "{{ portal_home }}/gCube/lib/"
|
|
||||||
- "{{ tomcat_path.stdout }}/lib/"
|
|
||||||
- "{{ tomcat_path.stdout }}"
|
|
||||||
|
|
||||||
- name: restore ownership
|
|
||||||
file: dest={{ portal_home }} owner={{ portal_user }} group={{ portal_user }} recurse=yes
|
|
||||||
|
|
||||||
- name: start the portal
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ portal_user }}"
|
|
||||||
shell: source ~/.bashrc && nohup {{ tomcat_path.stdout }}/bin/startup.sh &
|
|
|
@ -1,16 +0,0 @@
|
||||||
# .bashrc
|
|
||||||
|
|
||||||
# Source global definitions
|
|
||||||
if [ -f /etc/bashrc ]; then
|
|
||||||
. /etc/bashrc
|
|
||||||
fi
|
|
||||||
|
|
||||||
# User specific aliases and functions
|
|
||||||
export CLASSPATH=""
|
|
||||||
export CATALINA_HOME="{{ tomcat_path.stdout }}"
|
|
||||||
export JAVA_HOME="/usr/lib/jvm/jre-1.7.0"
|
|
||||||
export JRE_HOME="/usr/lib/jvm/jre-1.7.0"
|
|
||||||
#export CATALINA_OPTS="-DGLOBUS_LOCATION=$GLOBUS_LOCATION -Xmx2048m -Xms2048m -XX:MaxPermSize=256m -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol -Dlog4j.ignoreTCL=true -Dlog4j.configuration=file://$CATALINA_HOME/portal-log4j.properties"
|
|
||||||
export CATALINA_OPTS="-Dexternal-properties=portal-developer.properties -Xmx1000m -Xms1000m -XX:PermSize=512m -XX:MaxPermSize=512m -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol -Dlog4j.ignoreTCL=true -Dlog4j.configuration=file://$CATALINA_HOME/portal-log4j.properties -Dlogback.configurationFile=file://$CATALINA_HOME/portal-logback.xml"
|
|
||||||
export CATALINA_PID="{{ portal_home }}/pid.txt"
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
<authorization-endpoint priority="1" infrastructure="d4s"><host>{{ authorization_hostname }}</host><secure>false</secure><port>{{ authorization_port }}</port></authorization-endpoint>
|
|
|
@ -1,9 +0,0 @@
|
||||||
# DO NOT DELETE THIS FILE
|
|
||||||
# gCube Infrastructure Properties tells the webapps on which infrastructure they run
|
|
||||||
# Author: Massimiliano Assante, ISTI-CNR
|
|
||||||
|
|
||||||
# a single infrastructure
|
|
||||||
infrastructure={{ infrastructure }}
|
|
||||||
|
|
||||||
# multiple scopes must be separated by comma (e.g FARM,gCubeApps)
|
|
||||||
scopes={{ start_scopes }}
|
|
|
@ -1,2 +0,0 @@
|
||||||
liferay.home={{ portal_home }}
|
|
||||||
include-and-override={{ portal_home }}/portal-ext.properties
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
repo: "gcube-staging"
|
|
||||||
registry_version: "2.1.4-4.1.0-126945"
|
|
||||||
registry_artifact: "is-registry-service-{{ registry_version }}"
|
|
||||||
registry_gar: "{{ registry_artifact }}.gar"
|
|
||||||
registry_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/informationsystem/is-registry-service/{{ registry_version }}/{{ registry_gar }}"
|
|
||||||
|
|
||||||
start_scopes: ''
|
|
||||||
infrastructure: 'd4s'
|
|
||||||
|
|
||||||
registry_port: '8080'
|
|
||||||
registry_hostname: "{{ ansible_hostname }}"
|
|
||||||
registry_published_host: '{{ registry_hostname }}:{{ registry_port }}'
|
|
|
@ -1,2 +0,0 @@
|
||||||
#dependencies:
|
|
||||||
# - role: gcore-base
|
|
|
@ -1,29 +0,0 @@
|
||||||
- name: download {{ registry_gar }}
|
|
||||||
get_url: url={{ registry_url }} dest=/tmp force=yes
|
|
||||||
|
|
||||||
- name: deploy {{ registry_gar }}
|
|
||||||
shell: export GLOBUS_LOCATION={{ globus_location }} && export ANT_HOME={{ ant_location }} && export PATH=$PATH:$GLOBUS_LOCATION/bin && {{ globus_location }}/bin/gcore-deploy-service /tmp/{{ registry_gar }}
|
|
||||||
|
|
||||||
- name: add GLOBUS_OPTIONS to the gcore startup script
|
|
||||||
lineinfile: dest="{{ globus_location }}/gcore-start.sh" insertbefore="^nohup" state=present line='export GLOBUS_OPTIONS="-Xms512M -Xmx1024M"'
|
|
||||||
|
|
||||||
- name: copy updated GHNConfig.xml
|
|
||||||
template: src=GHNConfig.xml dest={{ globus_location }}/config/
|
|
||||||
|
|
||||||
- name: updated is-registry-service jndi-config.xml, add start scopes when needed
|
|
||||||
lineinfile: dest="{{ globus_location }}/etc/{{ registry_artifact }}/jndi-config.xml" insertafter='.*?<service name="gcube/informationsystem/registry">' state=present line=" <environment name=\"startScopes\" value=\"/{{ infrastructure }}/{{ start_scopes }}\" type=\"java.lang.String\" override=\"false\" />"
|
|
||||||
when: start_scopes != ""
|
|
||||||
|
|
||||||
- name: set logicalhost parameter on {{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd
|
|
||||||
replace: dest="{{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd" regexp='localhost' replace="{{ registry_hostname }}"
|
|
||||||
|
|
||||||
- name: add is-registry Servicemap entry
|
|
||||||
lineinfile: dest="{{ globus_location }}/config/{{ servicemap_xmlfile }}" insertbefore="^</ServiceMap>" state=present line=' <Service name ="ISRegistry" endpoint="http://{{ registry_published_host }}/wsrf/services/gcube/informationsystem/registry/ResourceRegistration" />'
|
|
||||||
|
|
||||||
- name: restore ownership
|
|
||||||
file: dest={{ globus_location }} owner={{ ghn_user }} group={{ ghn_user }} recurse=yes
|
|
||||||
|
|
||||||
- name: start gCore
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ ghn_user }}"
|
|
||||||
shell: "{{ globus_location }}/gcore-start.sh"
|
|
|
@ -1,86 +0,0 @@
|
||||||
<?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="{{ 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" />
|
|
||||||
<!-- PublishedHost -->
|
|
||||||
<environment
|
|
||||||
name="publishedHost"
|
|
||||||
value="{{ registry_hostname }}"
|
|
||||||
type="java.lang.String"
|
|
||||||
override="false" />
|
|
||||||
<!-- PublishedPort -->
|
|
||||||
<environment
|
|
||||||
name="publishedPort"
|
|
||||||
value="{{ registry_port }}"
|
|
||||||
type="java.lang.Integer"
|
|
||||||
override="false" />
|
|
||||||
</global>
|
|
||||||
</jndiConfig>
|
|
|
@ -1,23 +0,0 @@
|
||||||
---
|
|
||||||
repo: "gcube-staging"
|
|
||||||
resourcebroker_version: "1.2.0-4.1.0-126927"
|
|
||||||
resourcebroker_artifact: "resourcebroker-service-{{ resourcebroker_version }}"
|
|
||||||
resourcebroker_gar: "{{ resourcebroker_artifact }}.gar"
|
|
||||||
resourcebroker_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/resourcemanagement/resourcebroker-service/{{ resourcebroker_version }}/{{ resourcebroker_gar }}"
|
|
||||||
|
|
||||||
resourcebroker_serialization_version: "1.2.0-4.1.0-126929"
|
|
||||||
resourcebroker_serialization_artifact: "resourcebroker-serialization-{{ resourcebroker_serialization_version }}"
|
|
||||||
resourcebroker_serialization_jar: "{{ resourcebroker_serialization_artifact }}.jar"
|
|
||||||
resourcebroker_serialization_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/resourcemanagement/resourcebroker-serialization/{{ resourcebroker_serialization_version}}/{{ resourcebroker_serialization_jar }}"
|
|
||||||
|
|
||||||
resourcebroker_stubs_version: "1.2.0-4.1.0-126927"
|
|
||||||
resourcebroker_stubs_artifact: "rbstubs-{{ resourcebroker_stubs_version }}"
|
|
||||||
resourcebroker_stubs_jar: "{{ resourcebroker_stubs_artifact }}.jar"
|
|
||||||
resourcebroker_stubs_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/resourcemanagement/rbstubs/{{ resourcebroker_stubs_version }}/{{ resourcebroker_stubs_jar }}"
|
|
||||||
|
|
||||||
resourcebroker_hostname: "d4s.res.eng.it"
|
|
||||||
resourcebroker_port: "8399"
|
|
||||||
resourcebroker_endpoint: "{{ resourcebroker_hostname }}:{{ resourcebroker_port }}"
|
|
||||||
|
|
||||||
start_scopes: ''
|
|
||||||
infrastructure: 'd4s'
|
|
|
@ -1,2 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- role: gcore-base
|
|
|
@ -1,31 +0,0 @@
|
||||||
- name: download {{ resourcebroker_gar }}
|
|
||||||
get_url: url={{ resourcebroker_url }} dest=/tmp force=yes
|
|
||||||
|
|
||||||
- name: deploy {{ resourcebroker_gar }}
|
|
||||||
shell: export GLOBUS_LOCATION={{ globus_location }} ANT_HOME={{ ant_location }} && {{ globus_location }}/bin/gcore-deploy-service /tmp/{{ resourcebroker_gar }}
|
|
||||||
|
|
||||||
- name: add GLOBUS_OPTIONS to the gcore startup script
|
|
||||||
lineinfile: dest="{{ globus_location }}/gcore-start.sh" insertbefore="^nohup" state=present line='export GLOBUS_OPTIONS="-Xms512M -Xmx1024M"'
|
|
||||||
|
|
||||||
- name: copy updated GHNConfig.xml
|
|
||||||
template: src=GHNConfig.xml dest={{ globus_location }}/config/
|
|
||||||
|
|
||||||
#- name: update the resourcebroker jndi-config.xml, add start scopes when needed
|
|
||||||
# lineinfile: dest="{{ globus_location }}/etc/{{ registry_artifact }}/jndi-config.xml" insertafter='.*?<service name="gcube/informationsystem/registry">' state=present line=" <environment name=\"startScopes\" value=\"{{ start_scopes }}\" type=\"java.lang.String\" override=\"false\" />"
|
|
||||||
|
|
||||||
- name: deploy {{ resourcebroker_serialization_artifact }}
|
|
||||||
get_url: url={{ resourcebroker_serialization_url }} dest="{{ globus_location }}/lib/" force=yes
|
|
||||||
|
|
||||||
- name: deploy {{ resourcebroker_stubs_artifact }}
|
|
||||||
get_url: url={{ resourcebroker_stubs_url }} dest="{{ globus_location }}/lib/" force=yes
|
|
||||||
|
|
||||||
- name: set logicalhost parameter on {{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd
|
|
||||||
replace: dest="{{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd" regexp='localhost' replace="{{ resourcebroker_hostname }}"
|
|
||||||
|
|
||||||
- name: restore ownership
|
|
||||||
file: dest={{ globus_location }} owner={{ ghn_user }} group={{ ghn_user }} recurse=yes
|
|
||||||
|
|
||||||
- name: start gCore
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ ghn_user }}"
|
|
||||||
shell: "{{ globus_location }}/gcore-start.sh"
|
|
|
@ -1,87 +0,0 @@
|
||||||
<?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="{{ 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" />
|
|
||||||
<!-- Test PublishedHost -->
|
|
||||||
<environment
|
|
||||||
name="publishedHost"
|
|
||||||
value="{{ resourcebroker_hostname }} "
|
|
||||||
type="java.lang.String"
|
|
||||||
override="false" />
|
|
||||||
<!-- Test PublishedPort -->
|
|
||||||
<environment
|
|
||||||
name="publishedPort"
|
|
||||||
value="{{ resourcebroker_port }}"
|
|
||||||
type="java.lang.Integer"
|
|
||||||
override="false" />
|
|
||||||
|
|
||||||
|
|
||||||
</global>
|
|
||||||
</jndiConfig>
|
|
|
@ -1,23 +0,0 @@
|
||||||
---
|
|
||||||
repo: "gcube-staging"
|
|
||||||
resource_manager_version: "2.2.0-4.1.0-132314"
|
|
||||||
resource_manager_artifact: "resource-manager-service-{{ resource_manager_version }}"
|
|
||||||
resource_manager_gar: "{{ resource_manager_artifact }}.gar"
|
|
||||||
resource_manager_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/resourcemanagement/resource-manager-service/{{ resource_manager_version }}/{{ resource_manager_gar}}"
|
|
||||||
|
|
||||||
resourcebroker_serialization_version: "1.2.0-4.1.0-126929"
|
|
||||||
resourcebroker_serialization_artifact: "resourcebroker-serialization-{{ resourcebroker_serialization_version }}"
|
|
||||||
resourcebroker_serialization_jar: "{{ resourcebroker_serialization_artifact }}.jar"
|
|
||||||
resourcebroker_serialization_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/resourcemanagement/resourcebroker-serialization/{{ resourcebroker_serialization_version}}/{{ resourcebroker_serialization_jar }}"
|
|
||||||
|
|
||||||
resourcebroker_stubs_version: "1.2.0-4.1.0-126927"
|
|
||||||
resourcebroker_stubs_artifact: "rbstubs-{{ resourcebroker_stubs_version }}"
|
|
||||||
resourcebroker_stubs_jar: "{{ resourcebroker_stubs_artifact }}.jar"
|
|
||||||
resourcebroker_stubs_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/resourcemanagement/rbstubs/{{ resourcebroker_stubs_version }}/{{ resourcebroker_stubs_jar }}"
|
|
||||||
|
|
||||||
resource_manager_hostname: "d4s.res.eng.it"
|
|
||||||
resource_manager_port: "8499"
|
|
||||||
resource_manager_endpoint: "{{ resource_manager_hostname }}:{{ resource_manager_port }}"
|
|
||||||
|
|
||||||
start_scopes: ''
|
|
||||||
infrastructure: 'd4s'
|
|
|
@ -1,2 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- role: gcore-base
|
|
|
@ -1,31 +0,0 @@
|
||||||
- name: download {{ resource_manager_gar }}
|
|
||||||
get_url: url={{ resource_manager_url }} dest=/tmp force=yes
|
|
||||||
|
|
||||||
- name: deploy {{ resource_manager_gar }}
|
|
||||||
shell: export GLOBUS_LOCATION={{ globus_location }} ANT_HOME={{ ant_location }} && {{ globus_location }}/bin/gcore-deploy-service /tmp/{{ resource_manager_gar }}
|
|
||||||
|
|
||||||
- name: add GLOBUS_OPTIONS to the gcore startup script
|
|
||||||
lineinfile: dest="{{ globus_location }}/gcore-start.sh" insertbefore="^nohup" state=present line='export GLOBUS_OPTIONS="-Xms512M -Xmx1024M"'
|
|
||||||
|
|
||||||
- name: copy updated GHNConfig.xml
|
|
||||||
template: src=GHNConfig.xml dest={{ globus_location }}/config/
|
|
||||||
|
|
||||||
#- name: copy updated resource-manager jndi-config.xml
|
|
||||||
# template: src=jndi-config.xml dest={{ globus_location }}/etc/{{ resource_manager_artifact }}/
|
|
||||||
|
|
||||||
- name: set logicalhost parameter on {{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd
|
|
||||||
replace: dest="{{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd" regexp='localhost' replace="{{ resource_manager_hostname }}"
|
|
||||||
|
|
||||||
- name: deploy {{ resourcebroker_serialization_artifact }}
|
|
||||||
get_url: url={{ resourcebroker_serialization_url }} dest="{{ globus_location }}/lib/" force=yes
|
|
||||||
|
|
||||||
- name: deploy {{ resourcebroker_stubs_artifact }}
|
|
||||||
get_url: url={{ resourcebroker_stubs_url }} dest="{{ globus_location }}/lib/" force=yes
|
|
||||||
|
|
||||||
- name: restore ownership
|
|
||||||
file: dest={{ globus_location }} owner={{ ghn_user }} group={{ ghn_user }} recurse=yes
|
|
||||||
|
|
||||||
- name: start gCore
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ ghn_user }}"
|
|
||||||
shell: "{{ globus_location }}/gcore-start.sh"
|
|
|
@ -1,86 +0,0 @@
|
||||||
<?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="{{ 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" />
|
|
||||||
|
|
||||||
<!-- Test PublishedHost -->
|
|
||||||
<environment
|
|
||||||
name="publishedHost"
|
|
||||||
value="{{ resource_manager_hostname }} "
|
|
||||||
type="java.lang.String"
|
|
||||||
override="false" />
|
|
||||||
<!-- Test PublishedPort -->
|
|
||||||
<environment
|
|
||||||
name="publishedPort"
|
|
||||||
value="{{ resource_manager_port }}"
|
|
||||||
type="java.lang.Integer"
|
|
||||||
override="false" />
|
|
||||||
</global>
|
|
||||||
</jndiConfig>
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
repo: "gcube-staging"
|
|
||||||
software_gateway_version: "1.1.6-4.1.0-126706"
|
|
||||||
software_gateway_artifact: "softwaregateway-service-{{ software_gateway_version }}"
|
|
||||||
software_gateway_gar: "{{ software_gateway_artifact }}.gar"
|
|
||||||
software_gateway_url: "http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/resourcemanagement/softwaregateway-service/{{ software_gateway_version }}/{{ software_gateway_gar }}"
|
|
||||||
|
|
||||||
software_gateway_hostname: "d4s.res.eng.it"
|
|
||||||
software_gateway_port: "8599"
|
|
||||||
software_gateway_endpoint: "{{ software_gateway_hostname }}:{{ software_gateway_port }}"
|
|
||||||
|
|
||||||
start_scopes: ''
|
|
||||||
infrastructure: 'd4s'
|
|
|
@ -1,61 +0,0 @@
|
||||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.
|
|
||||||
0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
|
|
||||||
<servers>
|
|
||||||
<server>
|
|
||||||
<id>gcube-snapshots</id>
|
|
||||||
<username>gcube-user</username>
|
|
||||||
<password>maven</password>
|
|
||||||
</server>
|
|
||||||
<server>
|
|
||||||
<id>gcube-releases</id>
|
|
||||||
<username>gcube-user</username>
|
|
||||||
<password>maven</password>
|
|
||||||
</server>
|
|
||||||
</servers>
|
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>gcube</id>
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>gcube-staging</id>
|
|
||||||
<name>gCube Staging</name>
|
|
||||||
<url>http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-staging</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
<releases>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</releases>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>gcube-externals</id>
|
|
||||||
<name>gCube Externals</name>
|
|
||||||
<url>http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-externals</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
<releases>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</releases>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
<pluginRepositories>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>gcube-releases</id>
|
|
||||||
<name>gCube Releases</name>
|
|
||||||
<url>http://maven.research-infrastructures.eu/nexus/content/repositories/gcube-releases</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
<releases>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</releases>
|
|
||||||
</pluginRepository>
|
|
||||||
</pluginRepositories>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
<activeProfiles>
|
|
||||||
<activeProfile>gcube</activeProfile>
|
|
||||||
</activeProfiles>
|
|
||||||
</settings>
|
|
|
@ -1,2 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- role: gcore-base
|
|
|
@ -1,25 +0,0 @@
|
||||||
- name: download {{ software_gateway_gar }}
|
|
||||||
get_url: url={{ software_gateway_url }} dest=/tmp force=yes
|
|
||||||
|
|
||||||
- name: deploy {{ software_gateway_gar }}
|
|
||||||
shell: export GLOBUS_LOCATION={{ globus_location }} ANT_HOME={{ ant_location }} && {{ globus_location }}/bin/gcore-deploy-service /tmp/{{ software_gateway_gar }}
|
|
||||||
|
|
||||||
- name: add GLOBUS_OPTIONS to the gcore startup script
|
|
||||||
lineinfile: dest="{{ globus_location }}/gcore-start.sh" insertbefore="^nohup" state=present line='export GLOBUS_OPTIONS="-Xms512M -Xmx1024M"'
|
|
||||||
|
|
||||||
- name: copy updated GHNConfig.xml
|
|
||||||
template: src=GHNConfig.xml dest={{ globus_location }}/config/
|
|
||||||
|
|
||||||
- name: copy settings.xml as per "https://gcube.wiki.gcube-system.org/gcube/Talk:Creating_gCube_Maven_components:_How-To#Repositories"
|
|
||||||
copy: src=settings.xml dest={{ globus_location }}/etc/{{ software_gateway_artifact }}/
|
|
||||||
|
|
||||||
- name: set logicalhost parameter on {{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd
|
|
||||||
replace: dest="{{ globus_location }}/etc/globus_wsrf_core/server-config.wsdd" regexp='localhost' replace="{{ software_gateway_hostname }}"
|
|
||||||
|
|
||||||
- name: restore ownership
|
|
||||||
file: dest={{ globus_location }} owner={{ ghn_user }} group={{ ghn_user }} recurse=yes
|
|
||||||
|
|
||||||
- name: start gCore
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ ghn_user }}"
|
|
||||||
shell: "{{ globus_location }}/gcore-start.sh"
|
|
|
@ -1,86 +0,0 @@
|
||||||
<?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="{{ 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" />
|
|
||||||
|
|
||||||
<!-- Test PublishedHost -->
|
|
||||||
<environment
|
|
||||||
name="publishedHost"
|
|
||||||
value="{{ software_gateway_hostname }} "
|
|
||||||
type="java.lang.String"
|
|
||||||
override="false" />
|
|
||||||
<!-- Test PublishedPort -->
|
|
||||||
<environment
|
|
||||||
name="publishedPort"
|
|
||||||
value="{{ software_gateway_port }}"
|
|
||||||
type="java.lang.Integer"
|
|
||||||
override="false" />
|
|
||||||
</global>
|
|
||||||
</jndiConfig>
|
|
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
- name: Download the Gcore upgrade script
|
|
||||||
become: True
|
|
||||||
become_user: '{{ item }}'
|
|
||||||
get_url: url={{ gcore_upgrade_script_url }} dest=/home/{{ item }} validate_certs=no
|
|
||||||
with_items: '{{ gcube_users }}'
|
|
||||||
tags: gcore_upgrade
|
|
||||||
|
|
||||||
- name: Run the Gcore upgrade script
|
|
||||||
become: True
|
|
||||||
become_user: '{{ item }}'
|
|
||||||
shell: . /home/{{ item }}/.bashrc ; cd /home/{{ item }} ; chmod 555 ./{{ gcore_upgrade_script }} ; ./{{ gcore_upgrade_script }} {{ http_port }} {{ restart_on_upgrade }} force
|
|
||||||
with_items: '{{ gcube_users }}'
|
|
||||||
tags: gcore_upgrade
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
gcore_maintenance_restart_cron: False
|
|
||||||
gcore_maintenance_log_files_cleanup: True
|
|
||||||
gcore_maintenance_log_files_cleanup_script: '/usr/local/bin/clean_access_log'
|
|
||||||
|
|
||||||
gcore_weekday_cron_run: '*'
|
|
||||||
gcore_maintenance_cron_users:
|
|
||||||
- { user: '{{ d4science_user }}', weekday: "{{ gcore_weekday_cron_run }}", job: "echo '`date`' >{{ d4science_user_home }}/gcore_service_restart.log ; {{ d4science_user_home }}/stopContainer.sh >>{{ d4science_user_home }}/gcore_service_restart.log 2>&1 ; sleep 30 ; {{ d4science_user_home }}/startContainer.sh >>{{ d4science_user_home }}/gcore_service_restart.log 2>&1", logrotate_job: '{{ gcore_maintenance_log_files_cleanup_script }}' }
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
RETVAL=
|
|
||||||
cd "$HOME/gCore/logs"
|
|
||||||
RETVAL=$?
|
|
||||||
if [ $RETVAL -ne 0 ] ; then
|
|
||||||
logger "The $HOME/gCore/logs does not exist, exiting."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
gzip -v9 access.log.????-??-??
|
|
||||||
|
|
||||||
/bin/ls -1t access.log.????-??-??.gz | tail -n +91 | xargs rm -v
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
---
|
|
||||||
- block:
|
|
||||||
- name: Install a cron job that restarts the registry gCore service
|
|
||||||
cron: name="Restart the {{ item.user }} gCore service"
|
|
||||||
minute="{{ item.minute | default(0) }}"
|
|
||||||
hour="{{ item.hour | default(3) }}"
|
|
||||||
weekday="{{ item.weekday | default('*') }}"
|
|
||||||
day="{{ item.day | default('*') }}"
|
|
||||||
user="{{ item.user }}"
|
|
||||||
job="{{ item.job }}"
|
|
||||||
disabled="{{ item.disabled | default(False) }}"
|
|
||||||
with_items: '{{ gcore_maintenance_cron_users }}'
|
|
||||||
|
|
||||||
when: gcore_maintenance_restart_cron
|
|
||||||
tags: [ 'gcoreboot', 'gcore_cron' ]
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Remove the cron job that restarts the registry gCore service
|
|
||||||
cron: name="Restart the {{ item.user }} gCore service"
|
|
||||||
minute="{{ item.minute | default(0) }}"
|
|
||||||
hour="{{ item.hour | default(3) }}"
|
|
||||||
weekday="{{ item.weekday | default('*') }}"
|
|
||||||
day="{{ item.day | default('*') }}"
|
|
||||||
user="{{ item.user }}"
|
|
||||||
job="{{ item.job }}"
|
|
||||||
disabled="{{ item.disabled | default(False) }}"
|
|
||||||
state=absent
|
|
||||||
with_items: '{{ gcore_maintenance_cron_users }}'
|
|
||||||
|
|
||||||
when: not gcore_maintenance_restart_cron
|
|
||||||
tags: [ 'gcoreboot', 'gcore_cron' ]
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Install the log cleanup script
|
|
||||||
copy: src=clean_access_log.sh dest={{ gcore_maintenance_log_files_cleanup_script }} mode=0755 owner=root group=root
|
|
||||||
|
|
||||||
- name: Install a cron job that removes the old log files
|
|
||||||
cron: name="Cleanup the {{ item.user }} gCore log files"
|
|
||||||
special_time='daily'
|
|
||||||
user="{{ item.user }}"
|
|
||||||
job="{{ item.logrotate_job }}"
|
|
||||||
disabled="{{ item.disabled | default(False) }}"
|
|
||||||
with_items: '{{ gcore_maintenance_cron_users }}'
|
|
||||||
when: item.logrotate_job is defined
|
|
||||||
|
|
||||||
when: gcore_maintenance_log_files_cleanup
|
|
||||||
tags: [ 'gcoreboot', 'gcore_cron', 'gcore_logs' ]
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Remove the cron job that restarts the registry gCore service
|
|
||||||
cron: name="Cleanup the {{ item.user }} gCore log files"
|
|
||||||
special_time='daily'
|
|
||||||
user="{{ item.user }}"
|
|
||||||
job="{{ item.logrotate_job }}"
|
|
||||||
disabled="{{ item.disabled | default(False) }}"
|
|
||||||
state=absent
|
|
||||||
with_items: '{{ gcore_maintenance_cron_users }}'
|
|
||||||
when: item.logrotate_job is defined
|
|
||||||
|
|
||||||
when: not gcore_maintenance_log_files_cleanup
|
|
||||||
tags: [ 'gcoreboot', 'gcore_cron', 'gcore_logs' ]
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
gcoreboot_install: False
|
|
||||||
gcoreboot_enabled: False
|
|
||||||
gcoreboot_startcontainer: startContainer.sh
|
|
||||||
gcoreboot_stopcontainer: stopContainer.sh
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd $HOME
|
|
||||||
if [ -f .gcorerc ] ; then
|
|
||||||
. .gcorerc
|
|
||||||
|
|
||||||
gcore-start-container
|
|
||||||
fi
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd $HOME
|
|
||||||
if [ -f .gcorerc ] ; then
|
|
||||||
. .gcorerc
|
|
||||||
gcore-stop-container
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
---
|
|
||||||
- block:
|
|
||||||
- name: Install the gcore boot script
|
|
||||||
template: src=gcore.j2 dest=/etc/init.d/{{ item }} owner=root group=root mode=0755
|
|
||||||
with_items: 'gcore'
|
|
||||||
|
|
||||||
- name: Install the start script inside the users home directory
|
|
||||||
copy: src={{ gcoreboot_startcontainer }} dest=/home/{{ item }}/{{ gcoreboot_startcontainer }} owner={{ item }} group={{ item }} mode=0755
|
|
||||||
with_items: '{{ gcore_users }}'
|
|
||||||
|
|
||||||
- name: Install the stop script inside the users home directory
|
|
||||||
copy: src={{ gcoreboot_stopcontainer }} dest=/home/{{ item }}/{{ gcoreboot_stopcontainer }} owner={{ item }} group={{ item }} mode=0755
|
|
||||||
with_items: '{{ gcore_users }}'
|
|
||||||
|
|
||||||
- name: Enable the gcore boot script
|
|
||||||
file: src=/etc/init.d/{{ item.path }} dest=/etc/{{ item.dest }} state=link
|
|
||||||
with_items:
|
|
||||||
- { path: 'gcore', dest: 'rc2.d/S95gcore' }
|
|
||||||
- { path: 'gcore', dest: 'rc3.d/S95gcore' }
|
|
||||||
- { path: 'gcore', dest: 'rc0.d/K25gcore' }
|
|
||||||
- { path: 'gcore', dest: 'rc1.d/K25gcore' }
|
|
||||||
|
|
||||||
when: gcoreboot_install
|
|
||||||
tags: [ 'gcoreboot' ]
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Remove the gcore boot script
|
|
||||||
file: dest=/etc/init.d/{{ item }} state=absent
|
|
||||||
with_items: 'gcore'
|
|
||||||
|
|
||||||
- name: disable the gcore boot script
|
|
||||||
file: dest=/etc/{{ item.dest }} state=absent
|
|
||||||
with_items:
|
|
||||||
- { path: 'gcore', dest: 'rc2.d/S95gcore' }
|
|
||||||
- { path: 'gcore', dest: 'rc3.d/S95gcore' }
|
|
||||||
- { path: 'gcore', dest: 'rc0.d/K25gcore' }
|
|
||||||
- { path: 'gcore', dest: 'rc1.d/K25gcore' }
|
|
||||||
|
|
||||||
when: not gcoreboot_install
|
|
||||||
tags: [ 'gcoreboot' ]
|
|
|
@ -1,33 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
|
|
||||||
case "${1:-''}" in
|
|
||||||
'start')
|
|
||||||
test=$(cat /etc/passwd | cut -d":" -f1 | grep gcube)
|
|
||||||
for elemento in $test; do
|
|
||||||
echo "entering on $elemento"
|
|
||||||
path="/home/$elemento/startContainer.sh"
|
|
||||||
if [ -e "$path" ]
|
|
||||||
then
|
|
||||||
su $elemento -c "source $path"
|
|
||||||
fi
|
|
||||||
echo "exiting from $elemento"
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
'stop')
|
|
||||||
test=$(cat /etc/passwd | cut -d":" -f1 | grep gcube)
|
|
||||||
for elemento in $test; do
|
|
||||||
echo "entering on $elemento"
|
|
||||||
path="/home/$elemento/stopContainer.sh"
|
|
||||||
if [ -e "$path" ]
|
|
||||||
then
|
|
||||||
su $elemento -c "source $path"
|
|
||||||
fi
|
|
||||||
echo "exiting from $elemento"
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $SELF {start|stop}"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
---
|
|
||||||
# Old stuff, do not use
|
|
||||||
#
|
|
||||||
- name: Stop the gcube service
|
|
||||||
shell: /home/{{ gcube_user }}/stopContainer.sh >/dev/null 2>&1
|
|
||||||
#shell: su - {{ gcube_user }} /home/{{ gcube_user }}/gCore/bin/gcore-stop-container
|
|
||||||
ignore_errors: True
|
|
||||||
tags:
|
|
||||||
- ghn
|
|
||||||
|
|
||||||
- name: Install the new ghn release
|
|
||||||
action: ghn_r_cluster user={{ gcube_user }}
|
|
||||||
tags:
|
|
||||||
- ghn
|
|
||||||
|
|
||||||
- name: Replace the hostname in the gCore/etc/globus_wsrf_core/server-config.wsdd configuration file
|
|
||||||
lineinfile: dest=/home/{{ gcube_user }}/gCore/etc/globus_wsrf_core/server-config.wsdd regexp="<parameter name=\"logicalHost\" value=\".*/>" line="<parameter name=\"logicalHost\" value=\"{{ ansible_fqdn }}\"/>"
|
|
||||||
tags:
|
|
||||||
- ghn
|
|
||||||
- ghnconfig
|
|
||||||
|
|
||||||
- name: Replace JAVA_HOME in /home/{{ gcube_user }}/.gcorerc
|
|
||||||
lineinfile: dest=/home/{{ gcube_user }}/.gcorerc regexp="^export JAVA_HOME=.*" line="export JAVA_HOME={{ jdk_java_home }}"
|
|
||||||
tags:
|
|
||||||
- ghn
|
|
||||||
- ghnconfig
|
|
||||||
- jdk
|
|
|
@ -1,8 +0,0 @@
|
||||||
---
|
|
||||||
- name: Restart ghn webservice
|
|
||||||
shell: /etc/init.d/gcore stop ; /etc/init.d/gcore start
|
|
||||||
when:
|
|
||||||
- restart_gcore_service
|
|
||||||
- ( has_tomcat is defined ) and ( not has_tomcat )
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
- name: Install the gcube keys
|
|
||||||
copy: src=/tmp/symm.key dest=/home/{{ item.0 }}/{{ gcube_conf_path }}/{{ item.1 }} owner={{ item.0 }} group={{ item.0 }} mode=0400
|
|
||||||
with_nested:
|
|
||||||
- '{{ gcube_users }}'
|
|
||||||
- '{{ gcube_symm_key_file }}'
|
|
||||||
notify: Restart ghn webservice
|
|
||||||
tags:
|
|
||||||
- gcube_key
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"files.exclude": {
|
||||||
|
"**/.classpath": true,
|
||||||
|
"**/.project": true,
|
||||||
|
"**/.settings": true,
|
||||||
|
"**/.factorypath": true
|
||||||
|
}
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue