diff --git a/src/main/resources/custom/custom-voodoo/tasks/main.yaml b/src/main/resources/custom/custom-voodoo/tasks/main.yaml new file mode 100644 index 0000000..b29ee01 --- /dev/null +++ b/src/main/resources/custom/custom-voodoo/tasks/main.yaml @@ -0,0 +1,4 @@ +--- + +- name: Install the 'voodoo' custom package + shell: echo 'installing voodoo' diff --git a/src/main/resources/static/gcube-algorithm-installer/meta/main.yaml b/src/main/resources/static/gcube-algorithm-installer/meta/main.yaml new file mode 100644 index 0000000..e5cb1f3 --- /dev/null +++ b/src/main/resources/static/gcube-algorithm-installer/meta/main.yaml @@ -0,0 +1,4 @@ +dependencies: + - { role: gcube-dataminer } + - { role: os-unzip } + - { role: os-java-1.7.0 } \ No newline at end of file diff --git a/src/main/resources/static/gcube-algorithm-installer/tasks/main.yaml b/src/main/resources/static/gcube-algorithm-installer/tasks/main.yaml new file mode 100644 index 0000000..4cf8383 --- /dev/null +++ b/src/main/resources/static/gcube-algorithm-installer/tasks/main.yaml @@ -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 \ No newline at end of file diff --git a/src/main/resources/static/gcube-dataminer/meta/main.yaml b/src/main/resources/static/gcube-dataminer/meta/main.yaml new file mode 100644 index 0000000..bab366c --- /dev/null +++ b/src/main/resources/static/gcube-dataminer/meta/main.yaml @@ -0,0 +1,2 @@ +dependencies: + - { role: gcube-ghn } diff --git a/src/main/resources/static/gcube-dataminer/tasks/main.yaml b/src/main/resources/static/gcube-dataminer/tasks/main.yaml new file mode 100644 index 0000000..628c691 --- /dev/null +++ b/src/main/resources/static/gcube-dataminer/tasks/main.yaml @@ -0,0 +1,4 @@ +--- + +- name: Install the 'DATAMINER' package + shell: echo 'installing DATAMINER' \ No newline at end of file diff --git a/src/main/resources/static/gcube-ghn/tasks/main.yaml b/src/main/resources/static/gcube-ghn/tasks/main.yaml new file mode 100644 index 0000000..9808bf4 --- /dev/null +++ b/src/main/resources/static/gcube-ghn/tasks/main.yaml @@ -0,0 +1,7 @@ +--- + +- name: Install the 'GHN' package + shell: echo 'installing GHN' + +# TODO: handler to start container +# TODO: handler to stop container \ No newline at end of file diff --git a/src/main/resources/static/os-java-1.7.0/tasks/main.yaml b/src/main/resources/static/os-java-1.7.0/tasks/main.yaml new file mode 100644 index 0000000..2906525 --- /dev/null +++ b/src/main/resources/static/os-java-1.7.0/tasks/main.yaml @@ -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 diff --git a/src/main/resources/static/os-r/tasks/main.yaml b/src/main/resources/static/os-r/tasks/main.yaml new file mode 100644 index 0000000..8cf344a --- /dev/null +++ b/src/main/resources/static/os-r/tasks/main.yaml @@ -0,0 +1,4 @@ +--- + +- name: install R stuff + shell: echo install R stuff diff --git a/src/main/resources/static/os-unzip/tasks/main.yaml b/src/main/resources/static/os-unzip/tasks/main.yaml new file mode 100644 index 0000000..6887424 --- /dev/null +++ b/src/main/resources/static/os-unzip/tasks/main.yaml @@ -0,0 +1,7 @@ +--- + +- name: adding OS Package unzip + package: + name: unzip + state: "{{os_package_state}}" + become: true diff --git a/src/main/resources/templates/cran-package-add/meta/main.yaml b/src/main/resources/templates/cran-package-add/meta/main.yaml new file mode 100644 index 0000000..749a789 --- /dev/null +++ b/src/main/resources/templates/cran-package-add/meta/main.yaml @@ -0,0 +1,2 @@ +dependencies: + - { role: os-r } \ No newline at end of file diff --git a/src/main/resources/templates/cran-package-add/tasks/main.yaml b/src/main/resources/templates/cran-package-add/tasks/main.yaml new file mode 100644 index 0000000..b1efb2b --- /dev/null +++ b/src/main/resources/templates/cran-package-add/tasks/main.yaml @@ -0,0 +1,4 @@ +--- + +- name: adding CRAN Package + shell: echo "adding CRAN Package " diff --git a/src/main/resources/templates/gcube-algorithm-add/meta/main.yaml b/src/main/resources/templates/gcube-algorithm-add/meta/main.yaml new file mode 100644 index 0000000..9a8f86c --- /dev/null +++ b/src/main/resources/templates/gcube-algorithm-add/meta/main.yaml @@ -0,0 +1,4 @@ +--- +dependencies: + + - { role: gcube-algorithm-installer } \ No newline at end of file diff --git a/src/main/resources/templates/gcube-algorithm-add/tasks/main.yaml b/src/main/resources/templates/gcube-algorithm-add/tasks/main.yaml new file mode 100644 index 0000000..9390a2b --- /dev/null +++ b/src/main/resources/templates/gcube-algorithm-add/tasks/main.yaml @@ -0,0 +1,4 @@ +--- + +- name: Install algorithm + shell: ./addAlgorithm.sh "" diff --git a/src/main/resources/templates/os-package-add/tasks/main.yaml b/src/main/resources/templates/os-package-add/tasks/main.yaml new file mode 100644 index 0000000..7df04bc --- /dev/null +++ b/src/main/resources/templates/os-package-add/tasks/main.yaml @@ -0,0 +1,8 @@ +--- + +- name: adding OS Package + package: + name: + state: "{{os_package_state}}" + become: true +