Requires: python%{_python_buildid}-six
%if 0%{?fedora} || 0%{?rhel}
Requires: python%{_python_buildid}-cherrypy
-Requires: python%{_python_buildid}-jwt
-Requires: python%{_python_buildid}-routes
Requires: python%{_python_buildid}-werkzeug
-Requires: pyOpenSSL%{_python_buildid}
-Requires: python%{_python_buildid}-bcrypt
%endif
%if 0%{?suse_version}
Requires: python%{_python_buildid}-CherryPy
-Requires: python%{_python_buildid}-PyJWT
-Requires: python%{_python_buildid}-Routes
Requires: python%{_python_buildid}-Werkzeug
-Requires: python%{_python_buildid}-pyOpenSSL
-Requires: python%{_python_buildid}-bcrypt
Recommends: python%{_python_buildid}-influxdb
+Recommends: ceph-mgr-dashboard = %{_epoch_prefix}%{version}-%{release}
Recommends: ceph-mgr-diskprediction-local = %{_epoch_prefix}%{version}-%{release}
Recommends: ceph-mgr-diskprediction-cloud = %{_epoch_prefix}%{version}-%{release}
Recommends: ceph-mgr-rook = %{_epoch_prefix}%{version}-%{release}
the cluster maps, the daemon metadata, and performance counters, and
exposes all these to the python modules.
+%package mgr-dashboard
+Summary: Ceph Dashboard
+%if 0%{?suse_version}
+Group: System/Filesystems
+%endif
+Requires: ceph-mgr = %{_epoch_prefix}%{version}-%{release}
+%if 0%{?fedora} || 0%{?rhel}
+Requires: python%{_python_buildid}-cherrypy
+Requires: python%{_python_buildid}-jwt
+Requires: python%{_python_buildid}-routes
+Requires: python%{_python_buildid}-werkzeug
+Requires: pyOpenSSL%{_python_buildid}
+Requires: python%{_python_buildid}-bcrypt
+%endif
+%if 0%{?suse_version}
+Requires: python%{_python_buildid}-CherryPy
+Requires: python%{_python_buildid}-PyJWT
+Requires: python%{_python_buildid}-Routes
+Requires: python%{_python_buildid}-Werkzeug
+Requires: python%{_python_buildid}-pyOpenSSL
+Requires: python%{_python_buildid}-bcrypt
+%endif
+%description mgr-dashboard
+ceph-mgr-dashboard is a manager plugin, providing a web-based application
+to monitor and manage many aspects of a Ceph cluster and related components.
+See the Dashboard documentation at http://docs.ceph.com/ for details and a
+detailed feature overview.
+
%package mgr-diskprediction-local
Summary: ceph-mgr diskprediction_local plugin
BuildArch: noarch
%{_libdir}/ceph/mgr/ansible
%{_libdir}/ceph/mgr/balancer
%{_libdir}/ceph/mgr/crash
-%{_libdir}/ceph/mgr/dashboard
%{_libdir}/ceph/mgr/deepsea
%{_libdir}/ceph/mgr/devicehealth
%{_libdir}/ceph/mgr/influx
fi
fi
+%files mgr-dashboard
+%{_libdir}/ceph/mgr/dashboard
+
+%post mgr-dashboard
+if [ $1 -eq 1 ] ; then
+ /usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
+fi
+
+%postun mgr-dashboard
+if [ $1 -eq 1 ] ; then
+ /usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
+fi
+
%files mgr-diskprediction-local
%{_libdir}/ceph/mgr/diskprediction_local