library/roles/smartgears/accounting_aggregator_se_plugin: New smart executor plugin.

This commit is contained in:
Andrea Dell'Amico 2016-09-16 16:42:12 +02:00
parent 7452497843
commit 57560c63eb
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
gcube_repository: 'gcube-staging'
accounting_aggregator_se_plugin_install: False
accounting_aggregator_se_plugin_ver: 1.0.0-SNAPSHOT
accounting_aggregator_se_plugin_name: 'accounting-aggregator-se-plugin-1.0.0-20160729.125931-6.jar'
accounting_aggregator_se_plugin_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/accounting/accounting-aggregator-se-plugin/{{ accounting_aggregator_se_plugin_ver }}/{{ accounting_aggregator_se_plugin_name }}'

View File

@ -0,0 +1,3 @@
---
- name: Restart smartgears
service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted

View File

@ -0,0 +1,9 @@
---
- name: Get the accounting aggregator plugin and install it inside the smart executor
become: True
become_user: '{{ smartgears_user }}'
get_url: url={{ accounting_aggregator_se_plugin_url }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib
when: accounting_aggregator_se_plugin_install
notify: Restart smartgears
tags: [ 'smartgears', 'accounting_aggregator_se', 'tomcat' ]