Commit 8f0cfb5f authored by julian.gethmann's avatar julian.gethmann

Add Opera 18R2 client rule

* Depends on lasarchiv1 rule which is currently not implemented in a
laptop save way
parent d610322b
opera_path: /usr/local/share/Opera_18R2
...@@ -11,12 +11,12 @@ las126.las.kit.edu ...@@ -11,12 +11,12 @@ las126.las.kit.edu
[opera] [opera]
las113.las.kit.edu las113.las.kit.edu
# las114.las.kit.edu # las114.las.kit.edu
las-bernhard.anka.kit.edu # las-bernhard.anka.kit.edu
# las111.las.kit.edu # las111.las.kit.edu
las118.las.kit.edu # las118.las.kit.edu
las117.las.kit.edu # las117.las.kit.edu
las126.las.kit.edu las126.las.kit.edu
las-gethmann.las.kit.edu # las-gethmann.las.kit.edu
[elegant] [elegant]
las113.las.kit.edu las113.las.kit.edu
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
- include: common.yml - include: common.yml
- include: clients.yml - include: clients.yml
tags: client tags: client
#- include: opera.yml - include: opera.yml
tags: opera
#- include: update.yml #- include: update.yml
# tags: update # tags: update
- include: desktop.yml - include: desktop.yml
......
---
- hosts: opera
become: yes
roles:
- opera
tags: opera
#!/bin/bash -f
# added by ansible
export LD_LIBRARY_PATH=$VFDIR"lib/"
export VFGRAPHICS="NONE"
# [ -d opera_logs ] && rm -Rf opera_logs
${VFDIR}/bin/post -local $1
# -nowindow
#readtrack $2
#!/bin/bash -f
# added by ansible
export LD_LIBRARY_PATH=$VFDIR"lib/"
export VFGRAPHICS="NONE"
# [ -d opera_logs ] && rm -Rf opera_logs
$VFDIR/bin/modeller -local $1
# -nodisplay
#!/bin/bash -f
# added by ansible
export LD_LIBRARY_PATH=$VFDIR"lib/"
export VFGRAPHICS="NONE"
# [ -d opera_logs ] && rm -Rf opera_logs
${VFDIR}/bin/post -local $1
# -nowindow
#readtrack $2
export LMX_LICENSE_PATH=@129.13.108.100
export VECTORFIELD_LICENSE_PATH=@129.13.108.100
export VFDIR=/usr/local/share/Opera_18R2/code/
# This causes git to not work properly anymore (e.g. git pull --rebase)
# export PATH=/usr/local/share/Opera_17R1/bin:"${PATH}"
alias opera_manager="${VFDIR}bin/opera_manager"
---
- name: run custom
command: bash /etc/profile.d/opera.sh
become: yes
- name: ldconfig
command: ldconfig
become: yes
---
dependencies:
- { role: lasarchiv }
- { role: client }
---
- include: opera.yml
---
- name: check if Opera is installed
stat:
path: "{{ opera_path }}/code/bin/opera_manager"
register: stat_result
- name: copy Opera files to local machine
become: yes
become_user: gethmann # Hack since root is not allowed to view /mnt/las-archiv1
copy:
src: /mnt/las-archiv1/system/Opera/18/Opera_RHEL7.tar.bz
dest: /tmp
remote_src: True
when: stat_result.stat.exists == False
- name: unzip Opera
become: yes
unarchive:
# src: /mnt/las-archiv1/system/Opera/18/Opera_RHEL7.tar.bz
src: /tmp/Opera_RHEL7.tar.bz
dest: /usr/local/share/
creates: "{{ opera_path }}/code/bin/opera_manager"
remote_src: yes
- name: install dependencies
become: yes
dnf:
name: "{{ item }}"
state: present
when: (ansible_distribution == "Fedora" and ansible_distribution_major_version >= "24")
with_items:
- 'libpng15'
- 'xcb-util-image'
- 'xcb-util-wm'
- 'xcb-util-keysyms'
- 'xcb-util-renderutil'
- 'xterm'
# Fedora 25 deps
# - name: uninstall libicu
# dnf:
# name: # libicu nicht machbar, da zu viel (inkl. thunderbird, texmaker, texlive-latex-bin, sddm, plasma-breeze, uvm. davon abhängen!
# state: absent
# become: yes
# when: (ansible_distribution == "Fedora" and ansible_distribution_major_version >= "24")
# does not work either
# - name: link too new/missing libraries
# file:
# state: link
# src: "{{ item[1] }}"
# dest: "{{ opera_path }}/bin/{{ item[0] }}"
# become: yes
# with_items:
# - ["libicui18n.so.50", "/usr/lib64/libicui18n.so"]
# - ["libicuuc.so.50", "/usr/lib64/libicuuc.so"]
# - ["libicudata.so.50", "/usr/lib64/libicudata.so"]
# Work around for Fedora 25 vs. CentOS 7
- name: create dir for CentOS 7 libs
become: yes
file:
name: "{{ opera_path }}/CentOS7libs"
state: directory
when: (ansible_distribution == "Fedora" and ansible_distribution_major_version >= "22")
- name: copy libraries from real CentOS 7 host (server)
become: yes
copy:
src: "/mnt/las-archiv1/system/Opera/18/CentOS7libs/{{ item.src }}"
dest: "{{ opera_path }}/CentOS7libs/{{ item.dest }}"
with_items:
- { dest: 'libicui18n.so.50', src: 'libicui18n.so.50.1.2' }
- { dest: 'libicuuc.so.50', src: 'libicuuc.so.50.1.2' }
- { dest: 'libicudata.so.50', src: 'libicudata.so.50.1.2' }
when: (ansible_distribution == "Fedora" and ansible_distribution_major_version >= "22")
- name: make CentOS7 libs available
become: yes
copy:
dest: /etc/ld.so.conf.d/opera.conf
content: "{{ opera_path }}/CentOS7libs"
backup: yes
notify: ldconfig
when: (ansible_distribution == "Fedora" and ansible_distribution_major_version >= "22")
- name: install RHEL 6 deps
become: yes
dnf:
name: hwloc
state: present
when:
(ansible_distribution == "CentOS" and ansible_distribution_major_version == "6") or
(ansible_distribution == "RHEL" and ansible_distribution_major_version == "6")
- name: install RHEL 7 deps
become: yes
dnf:
name: hwloc-libs
state: present
when:
(ansible_distribution == "CentOS" and ansible_distribution_major_version == "7") or
(ansible_distribution == "RHEL" and ansible_distribution_major_version == "7") or
(ansible_distribution == "Fedora" and ansible_distribution_major_version >= "24")
- name: copy profile.d
become: yes
copy:
src: opera.sh
dest: /etc/profile.d/opera.sh
backup: yes
owner: root
group: root
mode: 0744
notify: run custom
- name: copy wrapper scripts
become: yes
copy:
src: "{{ item }}"
dest: /usr/local/bin
mode: ugo+x
with_items:
- "opera-mod.sh"
- "opera-post.sh"
- "opera-manager"
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
- include: common.yml - include: common.yml
- include: clients.yml - include: clients.yml
tags: client tags: client
#- include: opera.yml
#- include: elegant.yml #- include: elegant.yml
- include: admin.yml - include: admin.yml
tags: admin tags: admin
...@@ -10,6 +9,8 @@ ...@@ -10,6 +9,8 @@
#- include: server.yml #- include: server.yml
- include: nfs.yml - include: nfs.yml
tags: nfs tags: nfs
- include: opera.yml
tags: opera
#- include: update.yml #- include: update.yml
- include: desktop.yml - include: desktop.yml
tags: admin tags: admin
......
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