This commit is contained in:
Paolo Fabriani 2017-02-15 14:43:40 +00:00
parent bb84400e0d
commit 28433c640f
14 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
- name: Install the 'voodoo' custom package
shell: echo 'installing voodoo'

View File

@ -0,0 +1,4 @@
dependencies:
- { role: gcube-dataminer }
- { role: os-unzip }
- { role: os-java-1.7.0 }

View File

@ -0,0 +1,31 @@
---
- name: remove previous installer (if any)
file:
path: /home/dpm/algorithmInstaller
state: absent
#- name: remove previous installer.zip (if any)
# file:
# path: /home/dpm/algorithmInstaller.zip
# state: absent
#- name: download the installer zip
# get_url:
# url: https://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataminerAlgorithmsInstaller/package/algorithmInstaller.zip
# dest: /home/dpm/algorithmInstaller.zip
# validate_certs: no
- name: download and unzip the package
unarchive:
src: https://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataminerAlgorithmsInstaller/package/algorithmInstaller.zip
dest: /home/dpm
remote_src: yes
validate_certs: no
- name: change flags
file:
path: /home/dpm/algorithmInstaller
mode: 0777
state: directory
recurse: yes

View File

@ -0,0 +1,2 @@
dependencies:
- { role: gcube-ghn }

View File

@ -0,0 +1,4 @@
---
- name: Install the 'DATAMINER' package
shell: echo 'installing DATAMINER'

View File

@ -0,0 +1,7 @@
---
- name: Install the 'GHN' package
shell: echo 'installing GHN'
# TODO: handler to start container
# TODO: handler to stop container

View File

@ -0,0 +1,7 @@
---
- name: adding OS Package java-1.7.0
package:
name: java-1.7.0-openjdk
state: "{{os_package_state}}"
become: true

View File

@ -0,0 +1,4 @@
---
- name: install R stuff
shell: echo install R stuff

View File

@ -0,0 +1,7 @@
---
- name: adding OS Package unzip
package:
name: unzip
state: "{{os_package_state}}"
become: true

View File

@ -0,0 +1,2 @@
dependencies:
- { role: os-r }

View File

@ -0,0 +1,4 @@
---
- name: adding CRAN Package <name>
shell: echo "adding CRAN Package <name>"

View File

@ -0,0 +1,4 @@
---
dependencies:
<dependencies>
- { role: gcube-algorithm-installer }

View File

@ -0,0 +1,4 @@
---
- name: Install algorithm <name>
shell: ./addAlgorithm.sh <name> <category> <class> <vre> <atype> <skipjava> <packageurl> "<description>"

View File

@ -0,0 +1,8 @@
---
- name: adding OS Package <name>
package:
name: <name>
state: "{{os_package_state}}"
become: true