]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
spec.ceph: package ssh orchestrator
authorNoah Watkins <noahwatkins@gmail.com>
Mon, 11 Feb 2019 19:38:17 +0000 (11:38 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Wed, 20 Feb 2019 17:45:48 +0000 (09:45 -0800)
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
ceph.spec.in

index 93fa39721d28fc54fa702fa3d89fc326db441356..bd7bfbb3b660e4c3bc24dd555d47d4acad57eb08 100644 (file)
@@ -439,6 +439,7 @@ 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}
+Recommends:    ceph-mgr-ssh = %{_epoch_prefix}%{version}-%{release}
 %endif
 %description mgr
 ceph-mgr enables python modules that provide services (such as the REST
@@ -508,6 +509,18 @@ Requires:       ceph-mgr = %{_epoch_prefix}%{version}-%{release}
 ceph-mgr-rook is a ceph-mgr plugin for orchestration functions using
 a Rook backend.
 
+%package mgr-ssh
+Summary:        ceph-mgr ssh module
+BuildArch:     noarch
+%if 0%{?suse_version}
+Group:          System/Filesystems
+%endif
+Requires:       ceph-mgr = %{_epoch_prefix}%{version}-%{release}
+Requires:       python-remoto
+%description mgr-ssh
+ceph-mgr-ssh is a ceph-mgr module for orchestration functions using
+direct SSH connections for management operations.
+
 %package fuse
 Summary:       Ceph fuse-based client
 %if 0%{?suse_version}
@@ -1583,6 +1596,19 @@ if [ $1 -eq 1 ] ; then
     /usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
 fi
 
+%files mgr-ssh
+%{_datadir}/ceph/mgr/ssh
+
+%post mgr-ssh
+if [ $1 -eq 1 ] ; then
+    /usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
+fi
+
+%postun mgr-ssh
+if [ $1 -eq 1 ] ; then
+    /usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
+fi
+
 %files mon
 %{_bindir}/ceph-mon
 %{_bindir}/ceph-monstore-tool