Basic role that installs the smaph catalina context.

This commit is contained in:
Andrea Dell'Amico 2018-04-05 14:50:32 +02:00
parent d9dfa8ef23
commit c319a2ca89
3 changed files with 18 additions and 0 deletions

3
smaph/defaults/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
# smaph_service_token: Use a vault file
smaph_db_base_dir: /var/lib/smaph_data

6
smaph/tasks/main.yml Normal file
View File

@ -0,0 +1,6 @@
---
- block:
- name: Install the catalina configuration needed by smaph
template: src=catalina-smaph.xml.j2 dest={{ smartgears_instance_path }}/conf/Catalina/localhost/smaph.xml
tags: [ 'smaph', 'tomcat' ]

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Parameter name="it.unipi.di.acube.smaph.wat-gcube-token" value="{{ smaph_service_token }}" override="false"/>
<Parameter name="it.unipi.di.acube.smaph.wiki-to-freebase-db" value="{{ smaph_db_base_dir }}/freebase.db" override="false"/>
<Parameter name="it.unipi.di.acube.smaph.entity-to-anchors-db" value="{{ smaph_db_base_dir }}/e2a.db" override="false"/>
</Context>