Update
This commit is contained in:
parent
65a4916e91
commit
9684077b05
5 changed files with 104 additions and 8 deletions
36
install_scripts/install_cron.yaml
Normal file
36
install_scripts/install_cron.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
- name: install cron server
|
||||
hosts: all
|
||||
become: true
|
||||
# Todo:
|
||||
# systemctl enable crond
|
||||
# systemctl start crond
|
||||
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,cronie,rsync
|
||||
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 /data_1
|
||||
ansible.posix.mount:
|
||||
src: 10.10.1.51:/volume1/data_1
|
||||
path: /data_1
|
||||
opts: rw,sync,hard,nolock
|
||||
boot: true
|
||||
state: mounted
|
||||
fstype: nfs
|
1
machines/cron
Normal file
1
machines/cron
Normal file
|
@ -0,0 +1 @@
|
|||
cron.neuro.uni-bremen.de ansible_user=ansibleuser ansible_ssh_common_args='-o StrictHostKeyChecking=no'
|
1
machines/fatbastard
Normal file
1
machines/fatbastard
Normal file
|
@ -0,0 +1 @@
|
|||
fatbastard.neuro.uni-bremen.de ansible_user=ansibleuser ansible_ssh_common_args='-o StrictHostKeyChecking=no'
|
58
sge_master_nodes.txt
Normal file
58
sge_master_nodes.txt
Normal file
|
@ -0,0 +1,58 @@
|
|||
rockylinux-9-default_20221109_amd64.tar.xz
|
||||
|
||||
yum install mc nfs-utils nfs-utils-coreos nfsv4-client-utils rpcbind openssh openssh-server wget
|
||||
systemctl start rpcbind
|
||||
systemctl enable rpcbind
|
||||
systemctl start sshd
|
||||
systemctl enable sshd
|
||||
|
||||
mkdir /data_1
|
||||
echo "10.10.1.51:/volume1/data_1 /data_1 nfs rw 0 0" >> /etc/fstab
|
||||
mount /data_1
|
||||
|
||||
dnf install epel-release
|
||||
|
||||
wget -c https://pkgs.dyn.su/el8/base/x86_64/raven-release.el8.noarch.rpm
|
||||
|
||||
vi /etc/yum.repos.d/sge.repo
|
||||
|
||||
[copr:copr.fedorainfracloud.org:loveshack:SGE]
|
||||
name=Copr repo for SGE owned by loveshack
|
||||
baseurl=https://download.copr.fedorainfracloud.org/results/loveshack/SGE/epel-9-$basearch/
|
||||
type=rpm-md
|
||||
skip_if_unavailable=True
|
||||
gpgcheck=1
|
||||
gpgkey=https://download.copr.fedorainfracloud.org/results/loveshack/SGE/pubkey.gpg
|
||||
repo_gpgcheck=0
|
||||
enabled=1
|
||||
enabled_metadata=1
|
||||
|
||||
[raven]
|
||||
name=Raven's RPM repo for el8-$basearch - base
|
||||
baseurl=https://pkgs.sysadmins.ws/el8/base/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-raven
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
|
||||
yum install libdb4-utils
|
||||
yum install gridengine-*
|
||||
|
||||
# copy /opt/sge to /data_1/sge
|
||||
# sge_qmaster 6444/tcp sge-qmaster # Grid Engine Qmaster Service
|
||||
# sge_qmaster 6444/udp sge-qmaster # Grid Engine Qmaster Service
|
||||
|
||||
export SGE_ROOT=/data_1/sge
|
||||
echo $SGE_ROOT
|
||||
export SGE_CELL=neuro
|
||||
export $SGE_QMASTER_PORT=6444
|
||||
export $SGE_EXECD_PORT=6445
|
||||
export $SGE_CLUSTER_NAME=neuro
|
||||
|
||||
. /data_1/sge/neuro/common/settings.sh
|
||||
|
||||
\cp /data_1/sge/sge.sh /etc/profile.d/sge.sh
|
||||
\cp /data_1/sge/sgeexecd.Neuro /etc/rc.d/init.d/sgeexecd.Neuro
|
||||
systemctl daemon-reload
|
||||
systemctl stop sgeexecd.Neuro
|
||||
killall -9 /sge-root/bin/lx-amd64/sge_execd
|
||||
systemctl start sgeexecd.Neuro
|
|
@ -46,14 +46,14 @@
|
|||
state: mounted
|
||||
fstype: nfs
|
||||
|
||||
- name: Mount /0
|
||||
ansible.posix.mount:
|
||||
src: 10.10.1.1:/volume1/data
|
||||
path: /0
|
||||
opts: rw,sync,hard,nolock
|
||||
boot: true
|
||||
state: mounted
|
||||
fstype: nfs
|
||||
# - name: Mount /0
|
||||
# ansible.posix.mount:
|
||||
# src: 10.10.1.1:/volume1/data
|
||||
# path: /0
|
||||
# opts: rw,sync,hard,nolock
|
||||
# boot: true
|
||||
# state: mounted
|
||||
# fstype: nfs
|
||||
|
||||
- name: Mount /sge-root
|
||||
ansible.posix.mount:
|
||||
|
|
Loading…
Reference in a new issue