forked from ISTI-ansible-roles/ansible-roles
Merge branch 'master' of gitorious.research-infrastructures.eu:infrastructure-management/ansible-playbooks
This commit is contained in:
commit
370d3b90be
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
hdf5_install: True
|
||||
hdf5_pkg_state: latest
|
||||
|
||||
hdf5_pkgs_list:
|
||||
- hdf5-tools
|
||||
- hdf5-helpers
|
||||
- libhdf5-10
|
||||
- libhdf5-dev
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- block:
|
||||
- name: apt key for the internal ppa repository
|
||||
apt_key: url=http://ppa.research-infrastructures.eu/system/keys/system-archive.asc state=present
|
||||
|
||||
- name: Setup the infrascience trusty repository
|
||||
apt_repository: repo='deb [arch=amd64] http://ppa.research-infrastructures.eu/trusty-infrascience {{ ansible_distribution_release }} main' update_cache=yes
|
||||
|
||||
- name: Install the hdf5 packages
|
||||
apt: pkg={{ item }} state={{ hdf5_pkg_state }} update_cache=yes cache_valid_time=3600
|
||||
with_items: '{{ hdf5_pkgs_list }}'
|
||||
|
||||
tags: [ 'hdf5' ]
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
# smaph_service_token: Use a vault file
|
||||
smaph_db_base_dir: /var/lib/smaph_data
|
|
@ -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' ]
|
|
@ -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>
|
||||
|
|
@ -34,6 +34,9 @@ dataminer_algorithms_updater_hour_frequency: "*"
|
|||
|
||||
dataminer_data_file_from_thredds: 'http://thredds.d4science.org/thredds/fileServer/public/netcdf/gebco_08_OCEANS_CLIMATOLOGY_METEOROLOGY_ATMOSPHERE_.nc'
|
||||
|
||||
dataminer_conda_install: True
|
||||
dataminer_hdf5: False
|
||||
|
||||
# dev, prod, preprod
|
||||
dataminer_infra_reference: dev
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: '../../library/roles/conda'
|
||||
- { role: ../../library/roles/conda, when: dataminer_conda_install }
|
||||
- { role: ../../library/roles/hdf5, when: dataminer_hdf5 }
|
||||
|
|
|
@ -79,6 +79,14 @@
|
|||
ignore_errors: True
|
||||
tags: packages
|
||||
|
||||
- name: Setup the infrascience trusty repository
|
||||
apt_repository: repo='deb [arch=amd64] http://ppa.research-infrastructures.eu/trusty-infrascience {{ ansible_distribution_release }} main' update_cache=yes
|
||||
when:
|
||||
- is_trusty
|
||||
- infrascience_internal_ppa
|
||||
ignore_errors: True
|
||||
tags: packages
|
||||
|
||||
- name: install common packages
|
||||
apt: pkg={{ item }} state={{ pkg_state }}
|
||||
with_items: '{{ common_packages }}'
|
||||
|
|
Loading…
Reference in New Issue