Skip to content

Commit

Permalink
Disable selinux across reboots (#35)
Browse files Browse the repository at this point in the history
Selinux breaks the slurmd service and must be disabled.

Resolves #34.
  • Loading branch information
cartalla authored Jun 23, 2022
1 parent 003740b commit e294a16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ if [[ -e /var/log/slurm ]]; then
fi
ln -s $logs_dir /var/log/slurm

# Selinux must be disable for slurmd to run
setenforce Permissive
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/sysconfig/selinux

systemctl enable slurmd
systemctl start slurmd
# Restart so that log file goes to file system
Expand Down
1 change: 1 addition & 0 deletions source/resources/playbooks/roles/all/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
shell:
cmd: |
setenforce Permissive
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/sysconfig/selinux
# Used by mount_ssds.bash
- name: Install packages required by mount_ssds.bash
Expand Down

0 comments on commit e294a16

Please sign in to comment.