From 004e907e6b4dad35bb98dfb6cadf5e425f32d040 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 19 Jul 2017 10:47:55 -0400 Subject: [PATCH] build/ops: add ceph-volume scripts/files to spec file Signed-off-by: Alfredo Deza --- ceph.spec.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 93aabf8279d6e..76e361832f887 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -13,7 +13,7 @@ # This file is under the GNU Lesser General Public License, version 2.1 # # Please submit bugfixes or comments via http://tracker.ceph.com/ -# +# %bcond_without ocf %bcond_without cephfs_java %if 0%{?suse_version} @@ -172,7 +172,7 @@ BuildRequires: python-PrettyTable BuildRequires: python-Sphinx BuildRequires: rdma-core-devel %endif -%if 0%{?fedora} || 0%{?rhel} +%if 0%{?fedora} || 0%{?rhel} Requires: systemd BuildRequires: boost-random BuildRequires: btrfs-progs @@ -933,6 +933,7 @@ rm -rf %{buildroot} %{_libexecdir}/systemd/system-preset/50-ceph.preset %{_sbindir}/ceph-create-keys %{_sbindir}/ceph-disk +%{_sbindir}/ceph-volume %{_sbindir}/rcceph %dir %{_libexecdir}/ceph %{_libexecdir}/ceph/ceph_common.sh @@ -961,9 +962,11 @@ rm -rf %{buildroot} %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds %endif %{_unitdir}/ceph-disk@.service +%{_unitdir}/ceph-volume@.service %{_unitdir}/ceph.target %{python_sitelib}/ceph_detect_init* %{python_sitelib}/ceph_disk* +%{python_sitelib}/ceph_volume* %{_mandir}/man8/ceph-deploy.8* %{_mandir}/man8/ceph-detect-init.8* %{_mandir}/man8/ceph-create-keys.8* @@ -989,6 +992,7 @@ fi %endif %if 0%{?fedora} || 0%{?rhel} %systemd_post ceph-disk@\*.service ceph.target +%systemd_post ceph-volume@\*.service ceph.target %endif if [ $1 -eq 1 ] ; then /usr/bin/systemctl start ceph.target >/dev/null 2>&1 || : @@ -1000,6 +1004,7 @@ fi %endif %if 0%{?fedora} || 0%{?rhel} %systemd_preun ceph-disk@\*.service ceph.target +%systemd_preun ceph-volume@\*.service ceph.target %endif %postun base @@ -1020,7 +1025,7 @@ if [ $FIRST_ARG -ge 1 ] ; then source $SYSCONF_CEPH fi if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then - /usr/bin/systemctl try-restart ceph-disk@\*.service > /dev/null 2>&1 || : + /usr/bin/systemctl try-restart ceph-disk@\*.service ceph-volume@\*.service > /dev/null 2>&1 || : fi fi -- 2.39.5