...
 
Commits (8)
[submodule "roles/opera/files/opera_utils"]
path = roles/opera/files/opera_utils
url = git@git.scc.kit.edu:las-software/15-4-Utilities/opera_utils.git
......@@ -42,7 +42,8 @@ desktop_software:
# Networking
# this should be the IP or in the sshd_config the "UseDNS" must be set to yes
ansible_server: 129.13.238.126
ansible_server_ipv6: "2a00:1398:4:8200:6840:923e:1415:87f7"
ansible_server_ipv6: "2a00:1398:4:8200:f610:60d7:fa90:7603"
ansible_ipv6_prefix: "2a00:1398:4:8200:"
nfs_server: 129.13.238.126
......
This diff is collapsed.
ansible_user: root
user_account: gethmann
user_account: nie
ip_suffix: 91
loc: 618
os: Fedora 32
......
ansible_user: root
user_account: gethmann
user_account: nie
ip_suffix: 92
loc: 618
os: Fedora 31
......
ansible_user: root
ansible_ssh_user: root
ansible_remote_user: gethmann
remote_user: gethmann
ansible_remote_user: fatehi
remote_user: fatehi
ip_suffix: 100
loc: 612
os: CentOS 7.4
......
ansible_user: root
user_account: gethmann
user_account: nie
ip_suffix: 126
loc: 618
os: Fedora 31
......
......@@ -152,40 +152,52 @@ obelix.las.kit.edu
[lab]
# las93.las.kit.edu
faulus.las.kit.edu ansible_python_interpreter=/usr/bin/python3
gutemine.las.kit.edu ansible_python_interpreter=/usr/bin/python3
titania.las.kit.edu ansible_python_interpreter=/usr/bin/python3
ueberdrus.las.kit.edu ansible_python_interpreter=/usr/bin/python3
faulus.las.kit.edu
gutemine.las.kit.edu
titania.las.kit.edu
ueberdrus.las.kit.edu
[lab:vars]
ansible_python_interpreter=/usr/bin/python3
[rpmbuild]
asterix.las.kit.edu
lysander.las.kit.edu
[elegant]
asterix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
falbala.las.kit.edu ansible_python_interpreter=/usr/bin/python3
galantine.las.kit.edu ansible_python_interpreter=/usr/bin/python3
homoeopatix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
idefix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
lysander.las.kit.edu ansible_python_interpreter=/usr/bin/python3
majestix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
methusalix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
obelix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
pepe.las.kit.edu ansible_python_interpreter=/usr/bin/python3
spuernix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
[epics]
asterix.las.kit.edu
faulus.las.kit.edu
falbala.las.kit.edu
galantine.las.kit.edu
gutemine.las.kit.edu
homoeopatix.las.kit.edu
idefix.las.kit.edu
lysander.las.kit.edu
majestix.las.kit.edu
methusalix.las.kit.edu
obelix.las.kit.edu
pepe.las.kit.edu
titania.las.kit.edu
ueberdrus.las.kit.edu
spuernix.las.kit.edu
[elegant:vars]
ansible_python_interpreter=/usr/bin/python3
[epics_kara]
asterix.las.kit.edu
galantine.las.kit.edu
lysander.las.kit.edu
[epics_kara:vars]
epics_ca_addr_list=141.52.111.66
[epics_labs]
homoeopatix.las.kit.edu
idefix.las.kit.edu
majestix.las.kit.edu
pepe.las.kit.edu
[epics:children]
epics_labs
epics_kara
lab
[ripgrep]
asterix.las.kit.edu
......@@ -204,7 +216,7 @@ teefax.las.kit.edu
lysander.las.kit.edu
# semi stable
[tgu]
[tgulab]
pepe.las.kit.edu
faulus.las.kit.edu
gutemine.las.kit.edu
......
......@@ -9,6 +9,8 @@
routers: 192.168.0.10
broadcast: 192.168.0.255
host_list: host-list-maglab
- epics_ca_addr_list: 192.168.0.3
roles:
- dhcpd
- epics
- lab
......@@ -101,5 +101,5 @@
become: yes
shell: |
nmcli connection down {{ ansible_default_ipv4.interface }}
nmcli connection up {{ ansible_default_ipv4.interface }}
nmcli connection up KITnet
exit 0
......@@ -58,7 +58,7 @@
backup: yes
notify: restart sshd
- name: Delete rootlogin-conf by anaconda
- name: Delete anaconda's rootlogin-conf
become: yes
file:
name: /etc/sysconfig/sshd-permitrootlogin
......@@ -70,7 +70,7 @@
user: root
state: present
key: "{{ rootkey }}"
key_options: 'from="{{ ansible_server }},{{ ansible_server_ipv6 }}"'
key_options: 'from="{{ ansible_server }},{{ ansible_ipv6_prefix }}*,*.{{ domains[0] }}"'
notify: restart sshd
- name: Enable tunnel
......
......@@ -25,7 +25,7 @@ authoritative;
# have to hack syslog.conf to complete the redirection).
log-facility local7;
{% if failover %}
{% if failover is defined %}
# failover https://www.madboa.com/geek/dhcp-failover/
# https://kb.isc.org/article/AA-00502/0/A-Basic-Guide-to-Configuring-DHCP-Failover.html
failover peer "dhcp-failover" {
......@@ -65,7 +65,7 @@ subnet {{ dhcpd.subnet }} netmask {{ dhcpd.netmask }} {
max-lease-time 7200;
deny unknown-clients;
range {{ dhcpd.range_start }} {{ dhcpd.range_end }};
{% if failover %}
{% if failover is defined %}
pool {
failover peer "dhcp-failover";
}
......
# export EPICS base path and configuration to interact with KARA's IOCs
export LD_LIBRARY_PATH=/usr/local/share/base-{{epics_version}}/lib/linux-x86_64:$LD_LIBRARY_PATH
# export EPICS_CA_ADDR_LIST=$(dig +short ankasr-cagw.anka.kit.edu)
export PATH=/usr/local/share/base-{{epics_version}}/bin/linux-x86_64:$PATH
export EPICS_BASE=/usr/local/share/base-{{epics_version}}
# {{ ansible_managed }}
#
# export EPICS base path and configuration to interact with KARA's IOCs or LASMagLab's IOCs
export LD_LIBRARY_PATH=/usr/local/share/base-{{ epics_version }}/lib/linux-x86_64:$LD_LIBRARY_PATH
{% if epics_ca_addr_list %}
export EPICS_CA_ADDR_LIST={{ epics_ca_addr_list }}
{% endif %}
export PATH=/usr/local/share/base-{{ epics_version }}/bin/linux-x86_64:$PATH
export EPICS_BASE=/usr/local/share/base-{{ epics_version }}
export EPICS_HOST_ARCH=linux-x86_64
export HOST_ARCH=linux-x86_64
......@@ -35,7 +35,7 @@
stat:
path: "/mnt/las-archiv1"
register: lasarchiv1
ignore_errors: True
ignore_errors: True
- name: remount lasarchiv1
mount:
......@@ -48,5 +48,4 @@
when: >
((ansible_default_ipv4.address | ipv4('129.13.238.64/26')) or (ansible_default_ipv6.address | ipv6('2a00:1398:4:8200::/64'))) and
((fstab.changed) and (lasarchiv1.stat.isdir is defined and lasarchiv1.stat.isdir) or ("'Input/output error' in lasarchiv1.stderr"))
......@@ -57,6 +57,7 @@
accept_hostkey: yes
become: yes
register: kit_git
when: tmpdir.path is defined
- name: create tex dir
become: yes
......@@ -64,6 +65,7 @@
path: "{{ texpath }}/tex/latex/KIT"
state: directory
mode: 0755
when: kit_git is defined
- name: copy tex files
become: yes
......@@ -73,6 +75,7 @@
notify:
- update latex
delegate_to: "{{ inventory_hostname }}"
when: kit_git is defined
- name: create doc dir
become: yes
......@@ -80,6 +83,7 @@
path: "{{ texpath }}/doc/latex/KIT"
state: directory
mode: 0755
when: kit_git is defined
- name: copy pdf files
become: yes
......@@ -89,11 +93,12 @@
notify:
- update latex
delegate_to: "{{ inventory_hostname }}"
when: kit_git is defined
# This should be deleted when the Arial task is working
- name: hack Helvetica into KIT styles due to broken font installation
lineinfile:
line: "\\\\RequirePackage{helvet}"
line: "\\RequirePackage{helvet}"
regexp: "\\\\RequirePackage{(uarial|helvet)}"
dest: "{{ texpath }}/tex/latex/KIT/{{ item }}"
backup: yes
......@@ -106,3 +111,4 @@
tags:
- latex
- kit
when: kit_git is defined
#!/bin/bash -f
# added by ansible
export LD_LIBRARY_PATH=$VFDIR"lib/"
export VFGRAPHICS="NONE"
# [ -d opera_logs ] && rm -Rf opera_logs
$VFDIR/bin/operafea-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/operafea-post -local $1
# -nowindow
#readtrack $2
Subproject commit 628ba49ebcd989b052ce7333d768668bc8dc1729
......@@ -41,7 +41,7 @@
- name: copy libraries from real CentOS 7 host (server)
become: yes
become_user: gethmann # see above
become_user: fatehi # see above
copy:
src: "/mnt/las-archiv1/system/Opera/18/CentOS7libs/{{ item.src }}"
dest: "{{ opera_path }}/CentOS7libs/{{ item.dest }}"
......@@ -72,7 +72,7 @@
name: libglvnd-glx
state: installed
- name:
- name: link libOpenGL
become: yes
file:
dest: /lib64/libOpenGL.so.1
......@@ -104,10 +104,10 @@
- name: copy wrapper scripts
become: yes
copy:
src: "{{ item }}"
src: "opera_utils/{{ item }}"
dest: /usr/local/bin
mode: ugo+x
with_items:
- "opera-mod.sh"
- "opera-post.sh"
- "opera-manager"
- "opera-pp.sh"
......@@ -46,9 +46,9 @@
- name: send mail to me
mail:
subject: Ansible run successful
to: Julian Gethmann <gethmann@kit.edu>
from: Ansible <gethmann@kit.edu>
body: Ansible ran successfully on {{ ansible_hostname }}.
to: "{{ admin_mail }}"
from: "Ansible <{{ admin_mail }}>"
body: "Ansible ran successfully on {{ ansible_hostname }}."
host: smarthost.kit.edu
port: 25
delegate_to: localhost
......@@ -9,6 +9,8 @@
routers: 192.168.127.10
broadcast: 192.168.127.255
host_list: host-list-cn-tgu
- epics_ca_addr_list: "169.254.1.1 169.254.1.3:20000 169.254.1.3:20002"
roles:
- dhcpd
- epics
- tgulab