Commit 3e40ecd9 authored by julian.gethmann's avatar julian.gethmann

Add epics role for KARA/base

* Add a role for EPICS base on Fedora
* Add basic support for talking to KARA's PVs
* Neither support for all further packages used at KARA nor any used for
the Jena-project
parent 532369ed
---
- hosts: localhost
roles:
- epics
......@@ -96,6 +96,9 @@ las120.las.kit.edu
las126.las.kit.edu
las-gethmann.las.kit.edu
[epics]
las113.las.kit.edu
[ripgrep]
las113.las.kit.edu
las-gethmann.las.kit.edu
......
---
- name: unarchived
become: yes
unarchive:
src: "https://www.aps.anl.gov/epics/download/base/base-{{ version }}.tar.gz"
dest: "/usr/local/share/"
creates: "/usr/local/share/base-{{ version }}/Makefile"
remote_src: yes
- name: copy environment variables
become: yes
template:
src: DOTepics
dest: /etc/profile.d/epics.sh
- name: ensure gcc is installed
become: yes
dnf:
name: "{{ item }}"
state: installed
with_items:
- gcc
- gcc-c++
- readline-devel
- perl-ExtUtils-ParseXS
- perl-Pod-Checker
- perl-devel
- name: make links
become: yes
file:
state: link
src: /usr/bin/xsubpp
dest: /usr/share/perl5/ExtUtils/xsubpp
- name: compile epics
become: yes
make:
chdir: "/usr/local/share/base-{{ version }}"
target: "{{ item }}"
with_items:
- install
- name: test epics on your own
debug:
msg: Please run 'caget -a A:SR:BeamInfo:01:Energy' from inside IBPT's office network
# export EPICS base path and configuration to interact with KARA's IOCs
export LD_LIBRARY_PATH=/usr/local/share/base-{{version}}/lib/linux-x86_64:$LD_LIBRARY_PATH
export EPICS_CA_ADDR_LIST=$(dig +short ankasr-appcache.anka.kit.edu)
export PATH=/usr/local/share/base-{{version}}/bin/linux-x86_64:$PATH
export EPICS_BASE=/usr/local/share/base-{{version}}
---
version: 3.15.5
......@@ -31,3 +31,5 @@
tags: jabref
- import_playbook: ripgrep.yml
tags: ripgrep
- import_playbook: epics.yml
tags: epics
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