Skip to content

Commit

Permalink
add cluster.fwd, fix duplicated firewall_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dongmao zhang committed Feb 12, 2014
1 parent c165b6f commit 149eb06
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
21 changes: 21 additions & 0 deletions package/cluster.fwd
@@ -0,0 +1,21 @@
## Name: Cluster
## Description: Opens ports for Varies Cluster related services

# space separated list of allowed TCP ports
# 30865 for csync2
# 5560 for mgmtd
# 7630 for hawk
# 21064 for dlm
TCP="30865 5560 7630 21064"

# space separated list of allowed UDP ports
UDP=""

# space separated list of allowed RPC services
RPC=""

# space separated list of allowed IP protocols
IP="igmp"

# space separated list of allowed UDP broadcast ports
BROADCAST=""
7 changes: 7 additions & 0 deletions package/yast2-cluster.spec
Expand Up @@ -17,13 +17,15 @@


Name: yast2-cluster
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
Version: 3.1.1
Release: 0
License: GPL-2.0
Group: System/YaST

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
Source1: cluster.fwd

Requires: yast2
BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-testsuite
Expand All @@ -47,6 +49,10 @@ Summary: Configuration of cluster
%install
%yast_install

mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
install -m 644 %{S:1} $RPM_BUILD_ROOT/%{_fwdefdir}/cluster



%files
%defattr(-,root,root)
Expand All @@ -59,3 +65,4 @@ Summary: Configuration of cluster
%{yast_scrconfdir}/*.scr
%{yast_agentdir}/ag_openais
%doc %{yast_docdir}
%config %{_fwdefdir}/cluster
2 changes: 1 addition & 1 deletion src/include/cluster/dialogs.rb
Expand Up @@ -901,7 +901,7 @@ def ServiceDialog
)
),
VSpacing(1),
Frame(_("firewall settings"), firewall_layout),
firewall_layout,
VStretch()
)

Expand Down

0 comments on commit 149eb06

Please sign in to comment.