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

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
- epics
......@@ -96,6 +96,9 @@
- name: unarchived
become: yes
src: "{{ version }}.tar.gz"
dest: "/usr/local/share/"
creates: "/usr/local/share/base-{{ version }}/Makefile"
remote_src: yes
- name: copy environment variables
become: yes
src: DOTepics
dest: /etc/profile.d/
- name: ensure gcc is installed
become: yes
name: "{{ item }}"
state: installed
- gcc
- gcc-c++
- readline-devel
- perl-ExtUtils-ParseXS
- perl-Pod-Checker
- perl-devel
- name: make links
become: yes
state: link
src: /usr/bin/xsubpp
dest: /usr/share/perl5/ExtUtils/xsubpp
- name: compile epics
become: yes
chdir: "/usr/local/share/base-{{ version }}"
target: "{{ item }}"
- install
- name: test epics on your own
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
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
Supports Markdown
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