]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
packaging: add SuSEfirewall2 service files
authorTim Serong <tserong@suse.com>
Wed, 29 Apr 2015 03:12:38 +0000 (13:12 +1000)
committerNathan Cutler <ncutler@suse.com>
Fri, 19 Jun 2015 11:25:01 +0000 (13:25 +0200)
This adds SuSEfirewall2 service files for Ceph MON, OSD and MDS, for use
on SLES and openSUSE.  The MON template opens port 6789 and the OSD/MDS
template opens the range 6800-7300 as per
http://ceph.com/docs/master/rados/configuration/network-config-ref/

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 77685f5b787c56bcb1c4d9f1e058e25312fa62fe)

ceph.spec.in
src/susefirewall-ceph-mon [new file with mode: 0644]
src/susefirewall-ceph-osd-mds [new file with mode: 0644]

index 3c4f20c576c98725ef13655e0bdcbcfafb54269d..c3f5c20a0b55595798eaeb2ae86b9898afb2a9af 100644 (file)
@@ -480,6 +480,12 @@ install -m 0644 -D src/rgw/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotat
 chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.ceph.conf
 chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.fetch_config
 
+# firewall templates
+%if 0%{?suse_version}
+install -m 0644 -D src/susefirewall-ceph-mon %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon
+install -m 0644 -D src/susefirewall-ceph-osd-mds %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds
+%endif
+
 # udev rules
 %if 0%{?rhel} >= 7 || 0%{?fedora}
 install -m 0644 -D udev/50-rbd.rules $RPM_BUILD_ROOT/usr/lib/udev/rules.d/50-rbd.rules
@@ -608,6 +614,10 @@ fi
 %endif
 %config %{_sysconfdir}/bash_completion.d/ceph
 %config(noreplace) %{_sysconfdir}/logrotate.d/ceph
+%if 0%{?suse_version}
+%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon
+%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds
+%endif
 %{_mandir}/man8/ceph-deploy.8*
 %{_mandir}/man8/ceph-disk.8*
 %{_mandir}/man8/ceph-create-keys.8*
diff --git a/src/susefirewall-ceph-mon b/src/susefirewall-ceph-mon
new file mode 100644 (file)
index 0000000..7a28e73
--- /dev/null
@@ -0,0 +1,5 @@
+## Name: Ceph MON
+## Description: Open port for Ceph Monitor
+
+# space separated list of allowed TCP ports
+TCP="6789"
diff --git a/src/susefirewall-ceph-osd-mds b/src/susefirewall-ceph-osd-mds
new file mode 100644 (file)
index 0000000..0109fde
--- /dev/null
@@ -0,0 +1,5 @@
+## Name: Ceph OSD/MDS
+## Description: Open ports for Ceph OSDs and Metadata Servers (max: 166 per node)
+
+# space separated list of allowed TCP ports
+TCP="6800:7300"