SHA256
1
0
forked from pool/slurm

- standard slurm.conf uses now also SlurmctldHost on all build

targets (bsc#1162377)

OBS-URL: https://build.opensuse.org/package/show/network:cluster/slurm?expand=0&rev=128
This commit is contained in:
Christian Goll 2020-02-05 15:38:55 +00:00 committed by Git OBS Bridge
parent 17b070147f
commit d94a66a178
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 5 15:37:05 UTC 2020 - Christian Goll <cgoll@suse.com>
- standard slurm.conf uses now also SlurmctldHost on all build
targets (bsc#1162377)
-------------------------------------------------------------------
Mon Jan 27 08:42:55 UTC 2020 - Egbert Eich <eich@suse.com>

View File

@ -581,13 +581,11 @@ sed -i 's#\(StateSaveLocation=\).*#\1%_localstatedir/lib/slurm#' %{buildroot}/%
sed -i 's#^\(SlurmdPidFile=\).*$#\1%{_localstatedir}/run/slurm/slurmd.pid#' %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf
sed -i 's#^\(SlurmctldPidFile=\).*$#\1%{_localstatedir}/run/slurm/slurmctld.pid#' %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf
sed -i 's#^\(SlurmdSpoolDir=\)/.*#\1%{_localstatedir}/spool/slurm#' %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf
%if 0%{?upgrade} || 0%{suse_version} > 1501
sed -i -e '/^ControlMachine=/i# Ordered List of Control Nodes' \
-e 's#ControlMachine=\(.*\)$#SlurmctldHost=\1(10.0.10.20)#' \
-e 's#BackupController=.*#SlurmctldHost=linux1(10.0.10.21)#' \
-e '/.*ControlAddr=.*/d' \
-e '/.*BackupAddr=.*/d' %{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf
%endif
cat >>%{buildroot}/%{_sysconfdir}/%{pname}/slurm.conf <<EOF
# SUSE default configuration
PropagateResourceLimitsExcept=MEMLOCK