SHA256
1
0
forked from pool/slurm

Accepting request 926016 from home:mslacken:branches:network:cluster

- added service definitions for firewalld

OBS-URL: https://build.opensuse.org/request/show/926016
OBS-URL: https://build.opensuse.org/package/show/network:cluster/slurm?expand=0&rev=191
This commit is contained in:
Christian Goll 2021-10-29 14:17:34 +00:00 committed by Git OBS Bridge
parent 7a20fda376
commit f4a3f06e75
5 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 18 13:36:14 UTC 2021 - Christian Goll <cgoll@suse.com>
- added service definitions for firewalld
-------------------------------------------------------------------
Wed Oct 6 07:12:52 UTC 2021 - Christian Goll <cgoll@suse.com>

View File

@ -135,6 +135,9 @@ Group: Productivity/Clustering/Computing
URL: https://www.schedmd.com
Source: https://download.schedmd.com/slurm/%{pname}-%{dl_ver}.tar.bz2
Source1: slurm-rpmlintrc
Source10: https://raw.githubusercontent.com/openSUSE/hpc/10c105e/files/slurm/slurmd.xml
Source11: https://raw.githubusercontent.com/openSUSE/hpc/10c105e/files/slurm/slurmctld.xml
Source12: https://raw.githubusercontent.com/openSUSE/hpc/10c105e/files/slurm/slurmdbd.xml
Patch0: Remove-rpath-from-build.patch
Patch1: slurm-2.4.4-init.patch
Patch2: pam_slurm-Initialize-arrays-and-pass-sizes.patch
@ -156,6 +159,7 @@ BuildRequires: autoconf
BuildRequires: automake
BuildRequires: coreutils
BuildRequires: fdupes
BuildRequires: firewalld
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
%if 0%{?have_hdf5}
@ -609,6 +613,9 @@ install -D -m600 etc/slurmdbd.conf.example %{buildroot}/%{_sysconfdir}/%{pname}/
install -D -m600 etc/slurmdbd.conf.example %{buildroot}%{_sysconfdir}/%{pname}/slurmdbd.conf.example
install -D -m755 contribs/sjstat %{buildroot}%{_bindir}/sjstat
install -D -m755 contribs/sgather/sgather %{buildroot}%{_bindir}/sgather
install -D -m644 %{S:10} %{buildroot}/%{_prefix}/lib/firewalld/services/slurmd.xml
install -D -m644 %{S:11} %{buildroot}/%{_prefix}/lib/firewalld/services/slurmctld.xml
install -D -m644 %{S:12} %{buildroot}/%{_prefix}/lib/firewalld/services/slurmdbd.xml
cat <<EOF >%{buildroot}%{_sysconfdir}/%{pname}/plugstack.conf
include %{_sysconfdir}/%{pname}/plugstack.conf.d/*.conf
@ -1231,6 +1238,9 @@ exit 0
%{?_rundir:%ghost %{_rundir}/slurm}
%dir %attr(0755, %slurm_u, %slurm_g)%{_localstatedir}/spool/slurm
%config(noreplace) %{_sysconfdir}/logrotate.d/slurm*
%{_prefix}/lib/firewalld/services/slurmd.xml
%{_prefix}/lib/firewalld/services/slurmctld.xml
%{_prefix}/lib/firewalld/services/slurmdbd.xml
%files config-man
%{?comp_at}

7
slurmctld.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>slurmctld</short>
<description>slurmctld is the management daemon for SLURM cluster management.</description>
<port protocol="tcp" port="6817"/>
<port protocol="udp" port="6817"/>
</service>

7
slurmd.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>slurmd</short>
<description>slurmd is the daemon which starts jobs for the SLURM cluster management.</description>
<port protocol="tcp" port="6818"/>
<port protocol="udp" port="6818"/>
</service>

7
slurmdbd.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>slurmd</short>
<description>slurmdbd is the database daemon for the SLURM cluster management.</description>
<port protocol="tcp" port="6819"/>
<port protocol="udp" port="6819"/>
</service>