diff --git a/install_scripts/install_cron.yaml b/install_scripts/install_cron.yaml new file mode 100644 index 0000000..e8510c9 --- /dev/null +++ b/install_scripts/install_cron.yaml @@ -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 diff --git a/machines/cron b/machines/cron new file mode 100644 index 0000000..513aac7 --- /dev/null +++ b/machines/cron @@ -0,0 +1 @@ +cron.neuro.uni-bremen.de ansible_user=ansibleuser ansible_ssh_common_args='-o StrictHostKeyChecking=no' \ No newline at end of file diff --git a/machines/fatbastard b/machines/fatbastard new file mode 100644 index 0000000..ff070de --- /dev/null +++ b/machines/fatbastard @@ -0,0 +1 @@ +fatbastard.neuro.uni-bremen.de ansible_user=ansibleuser ansible_ssh_common_args='-o StrictHostKeyChecking=no' \ No newline at end of file diff --git a/sge_master_nodes.txt b/sge_master_nodes.txt new file mode 100644 index 0000000..b9a8194 --- /dev/null +++ b/sge_master_nodes.txt @@ -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 \ No newline at end of file diff --git a/yaml_sub/mount_info.yaml b/yaml_sub/mount_info.yaml index 30a469d..63dfb04 100644 --- a/yaml_sub/mount_info.yaml +++ b/yaml_sub/mount_info.yaml @@ -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: