Update 17 04 2024

This commit is contained in:
David Rotermund 2024-04-17 22:57:11 +02:00
parent 9f8b6560ba
commit c0dd2fb418
20 changed files with 161 additions and 75 deletions

78
install_repo.yaml Normal file
View file

@ -0,0 +1,78 @@
---
- name: install repo
hosts: all
become: true
tasks:
- name: remove other files
include_tasks: yaml_sub/myrepo_clean.yaml
- name: update file myrepo.repo
import_tasks: yaml_sub/myrepo_data.yaml
- name: install nfs tools
dnf:
name: nfs-utils,nfs-utils-coreos,nfsv4-client-utils,rpcbind
state: present
update_cache: true
skip_broken: true
nobest: false
allowerasing: true
- name: Make sure rpcbind service unit is started
systemd_service:
enabled: true
state: started
name: rpcbind
- name: Mount /web
ansible.posix.mount:
src: 10.10.1.51:/volume1/web
path: /web
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs
- name: remove other files
include_tasks: yaml_sub/myrepo_clean.yaml
- name: update file myrepo.repo
import_tasks: yaml_sub/myrepo_data.yaml
- name: install client
ansible.builtin.dnf:
name: "http://10.10.0.3/cmk/check_mk/agents/check-mk-agent-2.2.0p24-1.noarch.rpm"
state: present
update_cache: true
skip_broken: true
nobest: false
allowerasing: true
disable_gpg_check: true
- name: remove other files
include_tasks: yaml_sub/install_docker.yaml
- name: Create volume code data
community.docker.docker_volume:
name: code_data
state: present
- name: Create httpd container
community.docker.docker_container:
name: httpd
image: httpd:alpine
state: started
recreate: yes
restart_policy: always
volumes:
- "/web:/usr/local/apache2/htdocs/"
published_ports:
- "80:80/tcp"

View file

@ -1 +1 @@
ansible.neuro.uni-bremen.de
ansible.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1,2 +1,2 @@
check.neuro.uni-bremen.de
check.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1,43 +1,43 @@
gate0
gate1
gate2
gp3u1
gp3u2
gp4u1
gp4u2
gp4u3
gp4u4
gp4u5
gp4u6
gp4u7
granat1
granat2
granat3
granat4
granat5
granat6
granat7
granat8
octopode
doppio
fatbastard
nc46
nc47
nc48
nc49
nc50
nc51
nc52
nc53
nc54
nc55
nc56
nc57
nc58
nc59
nc60
nc61
nc62
nc63
nc64
nc66
gate0 ansible_user=ansibleuser
gate1 ansible_user=ansibleuser
gate2 ansible_user=ansibleuser
gp3u1 ansible_user=ansibleuser
gp3u2 ansible_user=ansibleuser
gp4u1 ansible_user=ansibleuser
gp4u2 ansible_user=ansibleuser
gp4u3 ansible_user=ansibleuser
gp4u4 ansible_user=ansibleuser
gp4u5 ansible_user=ansibleuser
gp4u6 ansible_user=ansibleuser
gp4u7 ansible_user=ansibleuser
granat1 ansible_user=ansibleuser
granat2 ansible_user=ansibleuser
granat3 ansible_user=ansibleuser
granat4 ansible_user=ansibleuser
granat5 ansible_user=ansibleuser
granat6 ansible_user=ansibleuser
granat7 ansible_user=ansibleuser
granat8 ansible_user=ansibleuser
octopode ansible_user=ansibleuser
doppio ansible_user=ansibleuser
fatbastard ansible_user=ansibleuser
nc46 ansible_user=ansibleuser
nc47 ansible_user=ansibleuser
nc48 ansible_user=ansibleuser
nc49 ansible_user=ansibleuser
nc50 ansible_user=ansibleuser
nc51 ansible_user=ansibleuser
nc52 ansible_user=ansibleuser
nc53 ansible_user=ansibleuser
nc54 ansible_user=ansibleuser
nc55 ansible_user=ansibleuser
nc56 ansible_user=ansibleuser
nc57 ansible_user=ansibleuser
nc58 ansible_user=ansibleuser
nc59 ansible_user=ansibleuser
nc60 ansible_user=ansibleuser
nc61 ansible_user=ansibleuser
nc62 ansible_user=ansibleuser
nc63 ansible_user=ansibleuser
nc64 ansible_user=ansibleuser
nc66 ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.10
10.10.0.10 ansible_user=ansibleuser

View file

@ -1 +1 @@
crystal.neuro.uni-bremen.de
crystal.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
cups.neuro.uni-bremen.de
cups.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.5
10.10.0.5 ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.6
10.10.0.6 ansible_user=ansibleuser

View file

@ -1 +1 @@
haggis.neuro.uni-bremen.de
haggis.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
hawaii.neuro.uni-bremen.de
hawaii.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.5
10.10.0.5 ansible_user=ansibleuser

View file

@ -1 +1 @@
ldap.neuro.uni-bremen.de
ldap.neuro.uni-bremen.de ansible_user=ansibleuser

1
machines/repo Normal file
View file

@ -0,0 +1 @@
repo.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
semaphore.neuro.uni-bremen.de
semaphore.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.7
10.10.0.7 ansible_user=ansibleuser

View file

@ -1 +1 @@
takatuka.neuro.uni-bremen.de
takatuka.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
tea.neuro.uni-bremen.de
tea.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -0,0 +1,7 @@
apt-get update
apt install software-properties-common
add-apt-repository --yes --update ppa:ansible/ansible
apt install ansible
apt install mc vi sshpass ssh-keygen inetutils-ping

View file

@ -10,103 +10,103 @@
block: |
[FEDORACORE]
name=Fedora Core $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/Fedora/os
baseurl=http://10.10.0.11/repos/Fedora/$releasever/Fedora/os
enabled=1
gpgcheck=0
[FEDORAUPDATE]
name=Fedora Update $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/Fedora_Update
baseurl=http://10.10.0.11/repos/Fedora/$releasever/Fedora_Update
enabled=1
gpgcheck=0
[CUDA_37]
name=NVidia Cuda 37
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/cuda_37
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_37
enabled=0
gpgcheck=0
[CUDA_36]
name=NVidia Cuda 36
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/cuda_36
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_36
enabled=0
gpgcheck=0
[CUDA_35]
name=NVidia Cuda 35
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/cuda_35
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_35
enabled=0
gpgcheck=0
[CUDA_RHEL8]
name=NVidia Cuda RHEL 8
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/cuda_rhel8
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_rhel8
enabled=0
gpgcheck=0
[Google]
name=Google
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/google_64
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/google_64
enabled=1
gpgcheck=0
[oneAPI]
name=oneAPI
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/oneAPI
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/oneAPI
enabled=1
gpgcheck=0
[Opera]
name=Opera
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/opera/rpm.opera.com/rpm
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/opera/rpm.opera.com/rpm
enabled=1
gpgcheck=0
[RPMFusionFreeUpdate]
name=RPM Fusion Free Update $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/fusion_free/
baseurl=http://10.10.0.11/repos/Fedora/$releasever/fusion_free/
enabled=1
gpgcheck=0
[RPMFusionNonFreeUpdate]
name=RPM Fusion Non Free Update $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/fusion_nonfree/
baseurl=http://10.10.0.11/repos/Fedora/$releasever/fusion_nonfree/
enabled=1
gpgcheck=0
[RPMFusionFreeEverything]
name=RPM Fusion Free Everything $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/fusion_free2/os
baseurl=http://10.10.0.11/repos/Fedora/$releasever/fusion_free2/os
enabled=1
gpgcheck=0
[RPMFusionNonFreeEverything]
name=RPM Fusion Non Free Everything $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/fusion_nonfree2/os
baseurl=http://10.10.0.11/repos/Fedora/$releasever/fusion_nonfree2/os
enabled=1
gpgcheck=0
[SGE]
name=SGE
baseurl=http://10.10.1.1/repos/Fedora/32/sge/copr-be.cloud.fedoraproject.org/results/loveshack/SGE/fedora-32-x86_64
baseurl=http://10.10.0.11/repos/Fedora/32/sge/copr-be.cloud.fedoraproject.org/results/loveshack/SGE/fedora-32-x86_64
enabled=1
gpgcheck=0
[VSCode]
name=VS Code
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/vscode/packages.microsoft.com/yumrepos/vscode
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/vscode/packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=0
[zoom]
name=zoom
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/zoom
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/zoom
enabled=1
gpgcheck=0
[msedge]
name=msedge
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/edge/packages.microsoft.com/yumrepos/edge
baseurl=http://10.10.0.11/repos/Fedora/AllVersion/edge/packages.microsoft.com/yumrepos/edge
enabled=1
gpgcheck=0