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..14fe36d --- /dev/null +++ b/src/main/resources/static/gcube-algorithm-installer/meta/main.yaml @@ -0,0 +1,4 @@ +dependencies: + - { role: gcube-dataminer ***REMOVED*** + - { role: os-unzip ***REMOVED*** + - { role: os-java-1.7.0 ***REMOVED*** \ 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..874062c --- /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:***REMOVED***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:***REMOVED***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..2f68d3c --- /dev/null +++ b/src/main/resources/static/gcube-dataminer/meta/main.yaml @@ -0,0 +1,2 @@ +dependencies: + - { role: gcube-ghn ***REMOVED*** 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..3acc5a3 --- /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***REMOVED******REMOVED***" + 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..25d085d --- /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***REMOVED******REMOVED***" + 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..9bc46be --- /dev/null +++ b/src/main/resources/templates/cran-package-add/meta/main.yaml @@ -0,0 +1,2 @@ +dependencies: + - { role: os-r ***REMOVED*** \ 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..52b2aea --- /dev/null +++ b/src/main/resources/templates/gcube-algorithm-add/meta/main.yaml @@ -0,0 +1,4 @@ +--- +dependencies: + + - { role: gcube-algorithm-installer ***REMOVED*** \ 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..71a2609 --- /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***REMOVED******REMOVED***" + become: true +