Commit 6399a722 authored by axel.bernhard's avatar axel.bernhard

Merge branch 'master' of git.scc.kit.edu:las/ansible

parents 06a3aef6 7a97df94
...@@ -18,12 +18,13 @@ dnf install ansible git python3-dnf libselinux-python python3-netaddr ...@@ -18,12 +18,13 @@ dnf install ansible git python3-dnf libselinux-python python3-netaddr
Run Run
``` bash ``` bash
git clone clone git@git.scc.kit.edu:las/ansible.git git clone git@git.scc.kit.edu:las-it-organisation/32-0-IT-InstructionsAndRules/ansible.git
cd ansible cd ansible
ansible-playbook --ask-become-pass --limit $(hostname -f) --vault-id @prompt site.yml sudo ansible-playbook --limit $(hostname -f) --vault-id @prompt sites.yml
``` ```
* If you only want some parts of the roles to be run, you can use the option `-t TAGNAME` to run only those tasks with the given tag. * If you only want some parts of the roles to be run, you can use the option `-t TAGNAME` to run only those tasks with the given tag.
* The vault-password is known to the usual suspects.
### Ask for new software ### Ask for new software
Open an issue in the GitLab issue tracker and use the template for softwarerequests. Open an issue in the GitLab issue tracker and use the template for softwarerequests.
......
...@@ -20,6 +20,10 @@ python3pkg: ...@@ -20,6 +20,10 @@ python3pkg:
- cmake - cmake
- python3-flake8 - python3-flake8
- python3-Cython - python3-Cython
- nodejs
- nodejs-libs
- kf5-purpose-twitter
- npm
python2pkg: "" python2pkg: ""
......
...@@ -9,7 +9,7 @@ extra_software: ...@@ -9,7 +9,7 @@ extra_software:
- subversion # for ANKA software - subversion # for ANKA software
- borgbackup - borgbackup
- mosh # ssh alternative - mosh # ssh alternative
# keepass compatible console client # keepass compatible console client
- kpcli - kpcli
- perl-Clipboard - perl-Clipboard
- perl-Capture-Tiny - perl-Capture-Tiny
...@@ -18,10 +18,53 @@ extra_software: ...@@ -18,10 +18,53 @@ extra_software:
- neovim - neovim
- ShellCheck - ShellCheck
- inkscape-table - inkscape-table
# - fd-find # - fd-find
- ripgrep - ripgrep
- fzf # fuzzy finder - fzf # fuzzy finder
- gsl-devel # Needed to compile Eva Burkhards code - gsl-devel # Needed to compile Eva Burkhards code
- mupdf # better alternative to pdftk than pdfseparate+pdfunite - mupdf # better alternative to pdftk than pdfseparate+pdfunite
- evince # for fixing RIP errors when printing LaTeX posters - evince # for fixing RIP errors when printing LaTeX posters
- screen - screen
# PDL for undulator/wiggler Opera script
- perl-PDL
# Installing dependencies:
- perl-Devel-Peek
- perl-Inline
- perl-Inline-C
- perl-Pegex
- freeglut
- perl-B-Utils
- perl-Class-Load
- perl-Class-Tiny
- perl-Data-Dump-Streamer
- perl-Devel-OverloadInfo
- perl-Devel-PartialDump
- perl-Devel-REPL
- perl-Devel-REPL-Plugin-Completion
- perl-Devel-REPL-Plugin-DDS
- perl-Devel-REPL-Plugin-LexEnv
- perl-Devel-REPL-Plugin-MultiLine-PPI
- perl-File-HomeDir
- perl-File-Map
- perl-Filter-Simple
- perl-Getopt-Long-Descriptive
- perl-IPC-System-Simple
- perl-Lexical-Persistence
- perl-Module-Compile
- perl-Module-Pluggable
- perl-Moose
- perl-MooseX-Getopt
- perl-MooseX-Object-Pluggable
- perl-MooseX-Role-Parameterized
- perl-OpenGL
- perl-PPI
- perl-Parse-RecDescent
- perl-PerlIO-Layers
- perl-Pod-Parser
- perl-Prima
- perl-Text-Balanced
- perl-YAML-LibYAML
- perl-autodie
# Installing weak dependencies:
- perl-Text-Bidi
# End of PDL
...@@ -4,3 +4,6 @@ ip_suffix: 117 ...@@ -4,3 +4,6 @@ ip_suffix: 117
loc: 620 loc: 620
os: Fedora 27 os: Fedora 27
computer_name: idefix computer_name: idefix
extra_software:
- mupdf
...@@ -54,6 +54,7 @@ lysander.las.kit.edu ...@@ -54,6 +54,7 @@ lysander.las.kit.edu
asterix.las.kit.edu asterix.las.kit.edu
idefix.las.kit.edu idefix.las.kit.edu
lysander.las.kit.edu lysander.las.kit.edu
gutemine.las.kit.edu
[pynaff] [pynaff]
lysander.las.kit.edu lysander.las.kit.edu
......
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
src: web.las.pub src: web.las.pub
dest: /etc/pki/ca-trust/source/anchors/web.las.pem dest: /etc/pki/ca-trust/source/anchors/web.las.pem
notify: notify:
- activate cert - "update-ca-trust"
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
- import_tasks: sudoer.yml - import_tasks: sudoer.yml
- import_tasks: sysupdate.yml - import_tasks: sysupdate.yml
- import_tasks: ntp.yml - import_tasks: ntp.yml
- import_tasks: yumrepos.yml
tags: lasrepo
- import_tasks: software.yml - import_tasks: software.yml
- import_tasks: smartd.yml - import_tasks: smartd.yml
tags: smartd tags: smartd
......
This diff is collapsed.
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
firewalld: firewalld:
state: enabled state: enabled
permanent: true permanent: true
rich_rule: 'rule family="ipv4" source address="129.13.108.96/27" port port="10000-10100" protocol="tcp" accept' rich_rule: 'rule family="ipv4" source address="129.13.238.64/24" port port="10000-10100" protocol="tcp" accept'
notify: notify:
- reload firewall - reload firewall
- restart firewall - restart firewall
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
- name: Pelegant open ports - name: Pelegant open ports
become: yes become: yes
firewalld: firewalld:
state: enabled state: disabled
permanent: true permanent: true
rich_rule: 'rule family="ipv4" source address="129.13.238.64/24" port port="10000-10100" protocol="tcp" accept' rich_rule: 'rule family="ipv4" source address="129.13.108.64/24" port port="10000-10100" protocol="tcp" accept'
notify: notify:
- reload firewall - reload firewall
- restart firewall - restart firewall
......
...@@ -24,6 +24,8 @@ prePelegant: ...@@ -24,6 +24,8 @@ prePelegant:
- "mpich-devel" - "mpich-devel"
- "blas" - "blas"
- "blas-devel" - "blas-devel"
- "gsl"
- "lapack"
preSDDSdev: preSDDSdev:
- "libXpm-devel" - "libXpm-devel"
......
...@@ -16,15 +16,8 @@ ...@@ -16,15 +16,8 @@
- name: ensure gcc is installed - name: ensure gcc is installed
become: yes become: yes
dnf: dnf:
name: "{{ item }}" name: ["gcc", "gcc-c++", "readline-devel", "perl-ExtUtils-ParseXS", "perl-Pod-Checker", "perl-devel"]
state: installed state: installed
with_items:
- gcc
- gcc-c++
- readline-devel
- perl-ExtUtils-ParseXS
- perl-Pod-Checker
- perl-devel
- name: make links - name: make links
become: yes become: yes
......
...@@ -7,29 +7,23 @@ ...@@ -7,29 +7,23 @@
- name: install dependencies - name: install dependencies
dnf: dnf:
name: "{{ item }}" name: ["texlive-a0poster", "texlive-beamer", "texlive-bophook", "texlive-boxedminipage", "texlive-dinbrief", "texlive-hyperref", "texlive-lettrine", "texlive-mathpazo", "texlive-rcs", "texlive-sciposter", "texlive-shadow", "texlive-pgf", "texlive-xcolor",]
state: present state: present
skip_broken: yes
become: yes
- name: install dependencies
dnf:
name: "{{ kit_tikz }}"
state: present
skip_broken: yes
become: yes become: yes
with_items:
- "texlive-a0poster"
- "texlive-beamer"
- "texlive-bophook"
- "texlive-boxedminipage"
- "texlive-dinbrief"
- "texlive-hyperref"
- "texlive-lettrine"
- "texlive-mathpazo"
- "texlive-rcs"
- "texlive-sciposter"
- "texlive-shadow"
- "texlive-pgf"
- "texlive-xcolor"
- "{{ kit_tikz }}"
- name: make tmpdir - name: make tmpdir
tempfile: tempfile:
prefix: ansi prefix: ansi
state: directory state: directory
mode: 0755
register: tmpdir register: tmpdir
- name: Add ssh-key for the LaTeX repository - name: Add ssh-key for the LaTeX repository
...@@ -58,6 +52,7 @@ ...@@ -58,6 +52,7 @@
file: file:
path: "{{ texpath }}/tex/latex/KIT" path: "{{ texpath }}/tex/latex/KIT"
state: directory state: directory
mode: 0755
- name: copy tex files - name: copy tex files
become: yes become: yes
...@@ -73,6 +68,7 @@ ...@@ -73,6 +68,7 @@
file: file:
path: "{{ texpath }}/doc/latex/KIT" path: "{{ texpath }}/doc/latex/KIT"
state: directory state: directory
mode: 0755
- name: copy pdf files - name: copy pdf files
become: yes become: yes
...@@ -86,8 +82,8 @@ ...@@ -86,8 +82,8 @@
# This should be deleted when the Arial task is working # This should be deleted when the Arial task is working
- name: hack Helvetica into KIT styles due to broken font installation - name: hack Helvetica into KIT styles due to broken font installation
lineinfile: lineinfile:
line: "\\RequirePackage{helvet}" line: "\\\\RequirePackage{helvet}"
regexp: "\\RequirePackage{(uarial|helvet)}" regexp: "\\\\RequirePackage{(uarial|helvet)}"
dest: "{{ texpath }}/tex/latex/KIT/{{ item }}" dest: "{{ texpath }}/tex/latex/KIT/{{ item }}"
backup: yes backup: yes
become: yes become: yes
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
get_url: get_url:
dest: "{{ texpath }}" dest: "{{ texpath }}"
url: "https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts" url: "https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts"
mode: 0777 mode: 0755
register: tex_fonts_dl_ok register: tex_fonts_dl_ok
when: gnff_available.changed when: gnff_available.changed
......
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
file: file:
path: "{{ texpath }}/tex/latex" path: "{{ texpath }}/tex/latex"
state: directory state: directory
mode: 0755
- name: Install DPG-Tagungen document class - name: Install DPG-Tagungen document class
become: yes become: yes
copy: copy:
src: scdpg.cls src: scdpg.cls
dest: "{{ texpath }}/tex/latex/" dest: "{{ texpath }}/tex/latex/"
mode: 0755
notify: notify:
- hash latex - hash latex
tags: latex tags: latex
...@@ -19,6 +21,7 @@ ...@@ -19,6 +21,7 @@
copy: copy:
src: jacow.cls src: jacow.cls
dest: "{{ texpath }}/tex/latex/" dest: "{{ texpath }}/tex/latex/"
mode: 0755
notify: notify:
- hash latex - hash latex
tags: latex tags: latex
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
src: /tmp/uniinput.sty src: /tmp/uniinput.sty
dest: "{{ texpath }}/tex/latex/uniinput/uniinput.sty" dest: "{{ texpath }}/tex/latex/uniinput/uniinput.sty"
remote_src: yes remote_src: yes
mode: 0755
notify: update latex notify: update latex
when: sty_file is defined and sty_file.changed when: sty_file is defined and sty_file.changed
...@@ -51,5 +52,6 @@ ...@@ -51,5 +52,6 @@
src: /tmp/uniinput.pdf src: /tmp/uniinput.pdf
dest: "{{ texpath }}/doc/latex/uniinput/uniinput.pdf" dest: "{{ texpath }}/doc/latex/uniinput/uniinput.pdf"
remote_src: yes remote_src: yes
mode: 0755
notify: update latex notify: update latex
when: pdf_file is defined and pdf_file.changed when: pdf_file is defined and pdf_file.changed
/las-archiv1 129.13.108.64/26(rw,sync,root_squash) 129.13.238.64/26(rw,sync,root_squash) /las-archiv1 2a00:1398:4:8200::/64(rw,sync,root_squash) 129.13.238.64/26(rw,sync,root_squash)
/las-archiv1/users 129.13.108.64/26(rw,sync,root_squash) 129.13.238.64/26(rw,sync,root_squash) /las-archiv1/users 2a00:1398:4:8200::/64(rw,sync,root_squash) 129.13.238.64/26(rw,sync,root_squash)
--- ---
pycharm_name: pycharm-professional-2019.1 pycharm_name: pycharm-professional-2019.1.2
old_versions: old_versions:
- pycharm-professional-2019.1.1
- pycharm-professional-2019.1
- pycharm-professional-2018.3.3 - pycharm-professional-2018.3.3
- pycharm-professional-2018.3.1 - pycharm-professional-2018.3.1
- pycharm-professional-2018.2.4 - pycharm-professional-2018.2.4
......
...@@ -3,10 +3,7 @@ ...@@ -3,10 +3,7 @@
become: yes become: yes
dnf: dnf:
state: present state: present
name: "{{ item }}" name: ["python3-scipy", "python3-scikit-learn",]
with_items:
- python3-scipy
- python3-scikit-learn
tags: fit tags: fit
when: ansible_distribution == 'Fedora' when: ansible_distribution == 'Fedora'
...@@ -15,9 +12,5 @@ ...@@ -15,9 +12,5 @@
pip: pip:
executable: "{{ pip3bin }}" executable: "{{ pip3bin }}"
state: present state: present
name: "{{ item }}" name: ["iminuit", "lmfit", ]
with_items:
- iminuit
# - kafe
- lmfit
tags: fit tags: fit
--- ---
- name: Software for dependency installation - name: Software for dependency installation
dnf: dnf:
name: ["gcc", "gcc-c++", "glibc-devel.x86_64", "openssl-devel", "python-devel", "lapack-devel", "numpy-f2py", "redhat-rpm-config"] name: ["gcc", "gcc-c++", "glibc-devel.x86_64", "openssl-devel", "python-devel", "lapack-devel", "numpy-f2py", "redhat-rpm-config", "python3-tkinter", "libxcrypt-compat"]
state: present state: present
become: yes become: yes
when: ansible_distribution == 'Fedora' when: ansible_distribution == 'Fedora'
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
args: args:
warn: False warn: False
changed_when: false changed_when: false
when: (ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >= 24) when: (ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >= 24 and (ansible_distribution_major_version|int) < 28)
tags: ripgrep tags: ripgrep
- name: install ripgrep - name: install ripgrep
......
---
- import_tasks: zotero.yml
--- ---
# - name: create dir for zotero
# file:
# name: /usr/local/Zotero
# state: directory
- name: unarchive zotero - name: unarchive zotero
become: yes become: yes
unarchive: unarchive:
src: "{{ zotero_file }}" src: "{{ zotero_file }}"
dest: /usr/local/
list_files: yes
register: archive_contents
- name: move zotero to version independent location
become: yes
copy:
src: "/usr/local/{{ archive_contents.files[0] }}"
dest: /usr/local/Zotero dest: /usr/local/Zotero
remote_src: True
- name: move 2/2
become: yes
file:
path: "/usr/local/{{ archive_contents.files[0] }}"
state: absent
- name: link zotero - name: link zotero
become: yes become: yes
......
zotero_file: Zotero-5.0.59_linux-x86_64.tar.bz2 zotero_file: Zotero-5.0.66_linux-x86_64.tar.bz2
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