Commit aa4ba987 authored by Guillaume Mella's avatar Guillaume Mella
Browse files

move old sphere install with gravity in the common role eso-pipelines

parent 2f942a34
......@@ -33,10 +33,6 @@
# for this playbook
user_login: ees17
sph_kit: spher-kit-0.24.0
sph_kit_tgz: "{{ sph_kit }}.tar.gz"
sph_kit_url: "ftp://ftp.eso.org/pub/dfs/pipelines/sphere/{{ sph_kit_tgz }}"
gather_facts: true
tasks:
......@@ -49,10 +45,12 @@
# - name: update apt cache
#apt: update_cache=yes
when: false
- name: "Install required system packages"
apt: name={{ item }}
with_items:
- rsync # for coming synchronize tasks
- xfce4
- xfce4-xkb-plugin
- xscreensaver
......@@ -63,47 +61,14 @@
- curl
- include_role:
name: PeterMosmans.virtualbox-guest
name: PeterMosmans.virtualbox-guest
- include_role:
name: williamyeh.oracle-java
name: williamyeh.oracle-java
- name: "Install gravity pipeline"
- name: "Install some ESO pipelines"
include_role:
name: eso-pipeline-gravity
- name: "Install Sphere pipeline (http://www.eso.org/sci/software/pipelines/sphere/)"
block:
- apt: name={{ item }}
with_items:
- python-matplotlib
- python-wxgtk3.0
- python-astropy
- python-numpy
# - default-jre we prefer to install an oracle jvm before
- pkg-config
- g++
- zlib1g-dev
- make
- gzip
- tar
- yorick
- yorick-yeti
- yorick-optimpack
- shell: curl -O "{{ sph_kit_url }}"
args:
chdir: "/tmp"
- shell: tar xzf {{ sph_kit_tgz }}
args:
chdir: "/tmp"
- file: path="/usr/local/share/man/man1" state=directory # install_pipeline pre-requisite
- shell: echo \n | ./install_pipeline
args:
chdir: "/tmp/{{sph_kit}}"
name: eso-pipelines
- name: "Install system packages required by LITpro"
apt: name={{ item }} state=present
......@@ -173,7 +138,6 @@
synchronize:
src: files/LITproWrapper/
dest: "/home/{{user_login}}/.LITproWrapper"
become: no
# launch LITpro, generate pref file and set useremote service to false+fill local service path
......
---
# Author: Guillaume Mella
# Description: install ESO Reflex + the sphere and gravity pipelines
# created for EES17 tutorial https://hraetoile2017.sciencesconf.org/
# created for EES17 tutorial https://hraetoile2017.sciencesconf.org/
#
# Main information: https://www.eso.org/sci/software/reflex/
#
# Prerequisites : jdk (look at ansible-galaxy williamyeh.oracle-java )
# Todo:
# - Make it smarter so we can give a list of pipeline kits ( current version is hardcoded and may fail on next distribution from ESO side... )
#
# Note: this role must be run as priviledged user
- name: "Install Gravity pipeline (http://www.eso.org/sci/software/pipelines/gravity/)"
block:
......@@ -28,7 +34,20 @@
- yorick-yeti
- yorick-optimpack
- shell: touch toto
- shell: curl -O ftp://ftp.eso.org/pub/dfs/reflex/install_esoreflex
become: no
- shell: chmod 755 install_esoreflex
become: no
# fake configuration to limit to gravity and sphere
- shell: sed -i~ 's/pipeline_numbers_to_install="A"/pipeline_numbers_to_install="3 9"/g' install_esoreflex
become: no
# in non interactive session installation goes forward without asking for user inputs
- shell: ./install_esoreflex
become: no
# required when installed as root:
#- file: path="/usr/local/share/man/man1" state=directory # install_pipeline pre-requisite
- file: path="/usr/local/share/man/man1" state=directory # install_pipeline pre-requisite
become: true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment