2 # spec file for package ceph
4 # Copyright (C) 2004-2019 The Ceph Project Developers. See COPYING file
5 # at the top-level directory of this distribution and at
6 # https://github.com/ceph/ceph/blob/master/COPYING
8 # All modifications and additions to the file contributed by third parties
9 # remain the property of their copyright owners, unless otherwise agreed
12 # This file is under the GNU Lesser General Public License, version 2.1
14 # Please submit bugfixes or comments via http://tracker.ceph.com/
17 #################################################################################
18 # conditional build section
20 # please read http://rpm.org/user_doc/conditional_builds.html for explanation of
22 #################################################################################
23 %bcond_with make_check
24 %bcond_with cmake_verbose_logging
25 %bcond_without ceph_test_package
29 %bcond_without tcmalloc
31 %if 0%{?fedora} || 0%{?rhel}
32 %bcond_without selinux
34 %bcond_with cephfs_java
36 %bcond_without cephfs_java
38 %bcond_without amqp_endpoint
39 %bcond_without kafka_endpoint
41 %bcond_without libradosstriper
43 %global _remote_tarball_prefix https
://download.ceph.com
/tarballs
/
46 %bcond_with amqp_endpoint
47 %bcond_with cephfs_java
48 %bcond_with kafka_endpoint
49 %bcond_with libradosstriper
50 %ifarch x86_64 aarch64 ppc64le
57 #Compat macro for _fillupdir macro introduced in Nov 2017
58 %if ! %{defined _fillupdir}
59 %global _fillupdir
/var
/adm
/fillup
-templates
63 %if 0%{?fedora} || 0%{?suse_version} >= 1500
64 # distros that ship cmd2 and/or colorama
65 %bcond_without cephfs_shell
67 # distros that do _not_ ship cmd2/colorama
68 %bcond_with cephfs_shell
70 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
74 # get selinux policy version
75 # Force 0.0.0 policy version for centos builds to avoid repository sync issues between rhel and centos
77 %global _selinux_policy_version
0.0.0
79 %{!?_selinux_policy_version: %global _selinux_policy_version 0.0.0}
83 %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
84 %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
85 %{!?python3_pkgversion: %global python3_pkgversion 3}
86 %{!?python3_version_nodots: %global python3_version_nodots 3}
87 %{!?python3_version: %global python3_version 3}
89 %define __python
%{__python3}
91 # unify libexec for all targets
92 %global _libexecdir
%{_exec_prefix}/lib
94 # disable dwz which compresses the debuginfo
95 %global _find_debuginfo_dwz_opts
%{nil}
97 #################################################################################
98 # main package definition
99 #################################################################################
103 %if 0%{?fedora} || 0%{?rhel}
107 # define _epoch_prefix macro which will expand to the empty string if epoch is
109 %global _epoch_prefix
%{?epoch:%{epoch}:}
111 Summary: User space components of the Ceph file system
112 License: LGPL
-2.1 and LGPL
-3.0 and CC
-BY
-SA
-3.0 and GPL
-2.0 and BSL
-1.0 and BSD
-3-Clause and MIT
113 %if 0%{?suse_version}
114 Group: System
/Filesystems
116 URL: http
://ceph.com
/
117 Source0: %{?_remote_tarball_prefix}ceph
-15.2.8.tar.bz2
118 %if 0%{?suse_version}
119 # _insert_obs_source_lines_here
120 ExclusiveArch: x86_64 aarch64 ppc64le s390x
122 #################################################################################
123 # dependencies that apply across all distro families
124 #################################################################################
125 Requires: ceph
-osd
= %{_epoch_prefix}%{version}-%{release}
126 Requires: ceph
-mds
= %{_epoch_prefix}%{version}-%{release}
127 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
128 Requires: ceph
-mon
= %{_epoch_prefix}%{version}-%{release}
129 Requires(post
): binutils
130 %if 0%{with cephfs_java}
131 BuildRequires
: java
-devel
132 BuildRequires
: sharutils
135 BuildRequires
: checkpolicy
136 BuildRequires
: selinux
-policy
-devel
140 BuildRequires
: cmake3
> 3.5
142 BuildRequires
: cmake
> 3.5
144 BuildRequires
: cryptsetup
145 BuildRequires
: fuse
-devel
147 # devtoolset offers newer make and valgrind-devel, but the old ones are good
149 BuildRequires
: devtoolset
-8-gcc
-c
++ >= 8.3.1-3.1
151 BuildRequires
: gcc
-c
++
154 %if 0%{with tcmalloc}
155 %if 0%{?fedora} || 0%{?rhel}
156 BuildRequires
: gperftools
-devel
>= 2.6.1
158 %if 0%{?suse_version}
159 BuildRequires
: gperftools
-devel
>= 2.4
162 BuildRequires
: leveldb
-devel
> 1.2
163 BuildRequires
: libaio
-devel
164 BuildRequires
: libblkid
-devel
>= 2.17
165 BuildRequires
: libcurl
-devel
166 BuildRequires
: libcap
-ng
-devel
167 BuildRequires
: pkgconfig
(libudev
)
168 BuildRequires
: libnl3
-devel
169 BuildRequires
: liboath
-devel
170 BuildRequires
: libtool
171 BuildRequires
: libxml2
-devel
173 BuildRequires
: ncurses
-devel
174 BuildRequires
: parted
177 BuildRequires
: pkgconfig
178 BuildRequires
: procps
179 BuildRequires
: python
%{python3_pkgversion}
180 BuildRequires
: python
%{python3_pkgversion}-devel
181 BuildRequires
: snappy
-devel
183 BuildRequires
: pkgconfig
(udev
)
184 BuildRequires
: util
-linux
185 BuildRequires
: valgrind
-devel
187 BuildRequires
: xfsprogs
188 BuildRequires
: xfsprogs
-devel
189 BuildRequires
: xmlstarlet
191 %if 0%{with amqp_endpoint}
192 BuildRequires
: librabbitmq
-devel
194 %if 0%{with kafka_endpoint}
195 BuildRequires
: librdkafka
-devel
197 %if 0%{with make_check}
199 BuildRequires
: libuuid
-devel
201 BuildRequires
: python
%{python3_version_nodots}-bcrypt
202 BuildRequires
: python
%{python3_version_nodots}-nose
203 BuildRequires
: python
%{python3_version_nodots}-requests
204 BuildRequires
: python
%{python3_version_nodots}-dateutil
206 BuildRequires
: python
%{python3_pkgversion}-bcrypt
207 BuildRequires
: python
%{python3_pkgversion}-nose
208 BuildRequires
: python
%{python3_pkgversion}-pecan
209 BuildRequires
: python
%{python3_pkgversion}-requests
210 BuildRequires
: python
%{python3_pkgversion}-dateutil
213 BuildRequires
: python
%{python3_version_nodots}-six
214 BuildRequires
: python
%{python3_version_nodots}-virtualenv
216 BuildRequires
: python
%{python3_pkgversion}-six
217 BuildRequires
: python
%{python3_pkgversion}-virtualenv
220 BuildRequires
: python
%{python3_version_nodots}-coverage
222 BuildRequires
: python
%{python3_pkgversion}-coverage
225 BuildRequires
: python
%{python3_version_nodots}-pyOpenSSL
227 BuildRequires
: python
%{python3_pkgversion}-pyOpenSSL
232 BuildRequires
: c
-ares
-devel
233 BuildRequires
: gnutls
-devel
234 BuildRequires
: hwloc
-devel
235 BuildRequires
: libpciaccess
-devel
236 BuildRequires
: lksctp
-tools
-devel
237 BuildRequires
: protobuf
-devel
239 BuildRequires
: systemtap
-sdt
-devel
240 BuildRequires
: yaml
-cpp
-devel
242 #################################################################################
243 # distro-conditional dependencies
244 #################################################################################
245 %if 0%{?suse_version}
246 BuildRequires
: pkgconfig
(systemd
)
247 BuildRequires
: systemd
-rpm
-macros
249 PreReq
: %fillup_prereq
250 BuildRequires
: fdupes
251 BuildRequires
: net
-tools
252 BuildRequires
: libbz2
-devel
253 BuildRequires
: mozilla
-nss
-devel
254 BuildRequires
: keyutils
-devel
255 BuildRequires
: libopenssl
-devel
256 BuildRequires
: lsb
-release
257 BuildRequires
: openldap2
-devel
259 #BuildRequires: krb5-devel
260 BuildRequires
: cunit
-devel
261 BuildRequires
: python
%{python3_pkgversion}-setuptools
262 BuildRequires
: python
%{python3_pkgversion}-Cython
263 BuildRequires
: python
%{python3_pkgversion}-PrettyTable
264 BuildRequires
: python
%{python3_pkgversion}-Sphinx
265 BuildRequires
: rdma
-core
-devel
266 BuildRequires
: liblz4
-devel
>= 1.7
267 # for prometheus-alerts
268 BuildRequires
: golang
-github
-prometheus
-prometheus
270 %if 0%{?fedora} || 0%{?rhel}
272 BuildRequires
: boost
-random
273 BuildRequires
: nss
-devel
274 BuildRequires
: keyutils
-libs
-devel
275 BuildRequires
: libibverbs
-devel
276 BuildRequires
: librdmacm
-devel
277 BuildRequires
: openldap
-devel
278 #BuildRequires: krb5-devel
279 BuildRequires
: openssl
-devel
280 BuildRequires
: CUnit
-devel
281 BuildRequires
: redhat
-lsb
-core
282 BuildRequires
: python
%{python3_pkgversion}-devel
283 BuildRequires
: python
%{python3_pkgversion}-setuptools
285 BuildRequires
: python
%{python3_version_nodots}-Cython
287 BuildRequires
: python
%{python3_pkgversion}-Cython
289 BuildRequires
: python
%{python3_pkgversion}-prettytable
290 BuildRequires
: python
%{python3_pkgversion}-sphinx
291 BuildRequires
: lz4
-devel
>= 1.7
293 # distro-conditional make check dependencies
294 %if 0%{with make_check}
295 %if 0%{?fedora} || 0%{?rhel}
296 BuildRequires
: libtool
-ltdl
-devel
297 BuildRequires
: xmlsec1
298 BuildRequires
: xmlsec1
-devel
300 BuildRequires
: xmlsec1
-nss
302 BuildRequires
: xmlsec1
-openssl
303 BuildRequires
: xmlsec1
-openssl
-devel
305 BuildRequires
: python
%{python3_version_nodots}-jwt
306 BuildRequires
: python
%{python3_version_nodots}-scipy
308 BuildRequires
: python
%{python3_pkgversion}-cherrypy
309 BuildRequires
: python
%{python3_pkgversion}-jwt
310 BuildRequires
: python
%{python3_pkgversion}-routes
311 BuildRequires
: python
%{python3_pkgversion}-scipy
312 BuildRequires
: python
%{python3_pkgversion}-werkzeug
315 BuildRequires
: python
%{python3_version_nodots}-pyOpenSSL
317 BuildRequires
: python
%{python3_pkgversion}-pyOpenSSL
320 %if 0%{?suse_version}
321 BuildRequires
: libxmlsec1
-1
322 BuildRequires
: libxmlsec1
-nss1
323 BuildRequires
: libxmlsec1
-openssl1
324 BuildRequires
: python
%{python3_pkgversion}-CherryPy
325 BuildRequires
: python
%{python3_pkgversion}-PyJWT
326 BuildRequires
: python
%{python3_pkgversion}-Routes
327 BuildRequires
: python
%{python3_pkgversion}-Werkzeug
328 BuildRequires
: python
%{python3_pkgversion}-numpy
-devel
329 BuildRequires
: xmlsec1
-devel
330 BuildRequires
: xmlsec1
-openssl
-devel
333 # lttng and babeltrace for rbd-replay-prep
335 %if 0%{?fedora} || 0%{?rhel}
336 BuildRequires
: lttng
-ust
-devel
337 BuildRequires
: libbabeltrace
-devel
339 %if 0%{?suse_version}
340 BuildRequires
: lttng
-ust
-devel
341 BuildRequires
: babeltrace
-devel
344 %if 0%{?suse_version}
345 BuildRequires
: libexpat
-devel
347 %if 0%{?rhel} || 0%{?fedora}
348 BuildRequires
: expat
-devel
351 %if 0%{?fedora} || 0%{?rhel}
352 BuildRequires
: redhat
-rpm
-config
355 %if 0%{?fedora} || 0%{?rhel}
356 BuildRequires
: cryptopp
-devel
357 BuildRequires
: numactl
-devel
358 BuildRequires
: protobuf
-compiler
360 %if 0%{?suse_version}
361 BuildRequires
: libcryptopp
-devel
362 BuildRequires
: libnuma
-devel
366 BuildRequires
: /usr
/bin
/pathfix.py
370 Ceph is a massively scalable
, open
-source, distributed storage system that runs
371 on commodity hardware and delivers object
, block and file system storage.
374 #################################################################################
376 #################################################################################
378 Summary: Ceph Base Package
379 %if 0%{?suse_version}
380 Group: System
/Filesystems
382 Provides: ceph
-test:/usr
/bin
/ceph
-kvstore
-tool
383 Requires: ceph
-common
= %{_epoch_prefix}%{version}-%{release}
384 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
385 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
386 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
387 Requires: librgw2
= %{_epoch_prefix}%{version}-%{release}
389 Requires: ceph
-selinux
= %{_epoch_prefix}%{version}-%{release}
398 Requires: python
%{python3_pkgversion}-setuptools
402 %if 0%{?fedora} || 0%{?rhel}
403 # The following is necessary due to tracker 36508 and can be removed once the
404 # associated upstream bugs are resolved.
405 %if 0%{with tcmalloc}
406 Requires: gperftools
-libs
>= 2.6.1
413 Base is the package that includes all the files shared amongst ceph servers
416 Summary: Utility to bootstrap Ceph clusters
418 %if 0%{?suse_version}
419 Requires: apparmor
-abstractions
421 Requires: python
%{python3_pkgversion}
425 %description -n cephadm
426 Utility to bootstrap a Ceph cluster and manage Ceph daemons deployed
427 with systemd and podman.
429 %package -n ceph
-common
431 %if 0%{?suse_version}
432 Group: System
/Filesystems
434 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
435 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
436 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
437 Requires: python
%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
438 Requires: python
%{python3_pkgversion}-rbd = %{_epoch_prefix}%{version}-%{release}
439 Requires: python
%{python3_pkgversion}-cephfs = %{_epoch_prefix}%{version}-%{release}
440 Requires: python
%{python3_pkgversion}-rgw = %{_epoch_prefix}%{version}-%{release}
441 Requires: python
%{python3_pkgversion}-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
442 Requires: python
%{python3_pkgversion}-ceph-common = %{_epoch_prefix}%{version}-%{release}
443 %if 0%{?fedora} || 0%{?rhel}
444 Requires: python
%{python3_pkgversion}-prettytable
446 %if 0%{?suse_version}
447 Requires: python
%{python3_pkgversion}-PrettyTable
449 %if 0%{with libradosstriper}
450 Requires: libradosstriper1
= %{_epoch_prefix}%{version}-%{release}
453 %if 0%{?suse_version}
454 Requires(pre
): pwdutils
456 %description -n ceph
-common
457 Common utilities to mount and interact with a ceph storage cluster.
458 Comprised of files that are common to Ceph clients and servers.
461 Summary: Ceph Metadata Server Daemon
462 %if 0%{?suse_version}
463 Group: System
/Filesystems
465 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
467 ceph
-mds is the metadata server daemon
for the Ceph distributed file system.
468 One or more instances of ceph
-mds collectively manage the file system
469 namespace
, coordinating access to the shared OSD cluster.
472 Summary: Ceph Monitor Daemon
473 %if 0%{?suse_version}
474 Group: System
/Filesystems
476 Provides: ceph
-test:/usr
/bin
/ceph
-monstore
-tool
477 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
480 Recommends
: smartmontools
483 ceph
-mon is the cluster monitor daemon
for the Ceph distributed file
484 system. One or more instances of ceph
-mon form a Paxos part
-time
485 parliament cluster that provides extremely reliable and durable storage
486 of cluster membership
, configuration
, and state.
489 Summary: Ceph Manager Daemon
490 %if 0%{?suse_version}
491 Group: System
/Filesystems
493 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
494 Requires: ceph
-mgr
-modules
-core
= %{_epoch_prefix}%{version}-%{release}
496 Requires: python
%{python3_version_nodots}-six
498 Requires: python
%{python3_pkgversion}-six
501 Recommends
: ceph
-mgr
-dashboard
= %{_epoch_prefix}%{version}-%{release}
502 Recommends
: ceph
-mgr
-diskprediction
-local = %{_epoch_prefix}%{version}-%{release}
503 Recommends
: ceph
-mgr
-diskprediction
-cloud
= %{_epoch_prefix}%{version}-%{release}
504 Recommends
: ceph
-mgr
-k8sevents
= %{_epoch_prefix}%{version}-%{release}
505 Recommends
: ceph
-mgr
-cephadm
= %{_epoch_prefix}%{version}-%{release}
506 Recommends
: python
%{python3_pkgversion}-influxdb
509 ceph
-mgr enables python modules that provide services
(such as the REST
510 module derived from Calamari
) and expose CLI hooks. ceph
-mgr gathers
511 the cluster maps
, the daemon metadata
, and performance counters
, and
512 exposes all these to the python modules.
514 %package mgr
-dashboard
515 Summary: Ceph Dashboard
517 %if 0%{?suse_version}
518 Group: System
/Filesystems
520 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
521 Requires: ceph
-grafana
-dashboards
= %{_epoch_prefix}%{version}-%{release}
522 Requires: ceph
-prometheus
-alerts
= %{_epoch_prefix}%{version}-%{release}
523 %if 0%{?fedora} || 0%{?rhel}
524 Requires: python
%{python3_pkgversion}-cherrypy
525 Requires: python
%{python3_pkgversion}-jwt
526 Requires: python
%{python3_pkgversion}-routes
527 Requires: python
%{python3_pkgversion}-werkzeug
529 Recommends
: python
%{python3_pkgversion}-saml
532 %if 0%{?suse_version}
533 Requires: python
%{python3_pkgversion}-CherryPy
534 Requires: python
%{python3_pkgversion}-PyJWT
535 Requires: python
%{python3_pkgversion}-Routes
536 Requires: python
%{python3_pkgversion}-Werkzeug
537 Recommends
: python
%{python3_pkgversion}-python3
-saml
539 %description mgr
-dashboard
540 ceph
-mgr
-dashboard is a manager module
, providing a web
-based application
541 to monitor and manage many aspects of a Ceph cluster and related components.
542 See the Dashboard documentation at http
://docs.ceph.com
/ for details and a
543 detailed feature overview.
545 %package mgr
-diskprediction
-local
546 Summary: Ceph Manager module
for predicting disk failures
548 %if 0%{?suse_version}
549 Group: System
/Filesystems
551 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
552 Requires: python
%{python3_pkgversion}-numpy
553 Requires: python3
-scipy
558 %description mgr
-diskprediction
-local
559 ceph
-mgr
-diskprediction
-local is a ceph
-mgr module that tries to predict
560 disk failures using
local algorithms and machine
-learning databases.
562 %package mgr
-diskprediction
-cloud
563 Summary: Ceph Manager module
for cloud
-based disk failure prediction
565 %if 0%{?suse_version}
566 Group: System
/Filesystems
568 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
569 %if 0%{without python2}
570 Requires: python3
-grpcio
571 Requires: python3
-protobuf
573 Requires: python2
-grpcio
574 Requires: python2
-protobuf
576 %description mgr
-diskprediction
-cloud
577 ceph
-mgr
-diskprediction
-cloud is a ceph
-mgr module that tries to predict
578 disk failures using services
in the Google cloud.
580 %package mgr
-modules
-core
581 Summary: Ceph Manager modules which are always enabled
583 %if 0%{?suse_version}
584 Group: System
/Filesystems
587 Requires: python
%{python3_version_nodots}-bcrypt
588 Requires: python
%{python3_version_nodots}-pyOpenSSL
589 Requires: python
%{python3_version_nodots}-requests
590 Requires: python
%{python3_version_nodots}-PyYAML
591 Requires: python
%{python3_version_nodots}-dateutil
593 Requires: python
%{python3_pkgversion}-bcrypt
594 Requires: python
%{python3_pkgversion}-pecan
595 Requires: python
%{python3_pkgversion}-pyOpenSSL
596 Requires: python
%{python3_pkgversion}-requests
597 Requires: python
%{python3_pkgversion}-dateutil
599 %if 0%{?fedora} || 0%{?rhel} >= 8
600 Requires: python
%{python3_pkgversion}-cherrypy
601 Requires: python
%{python3_pkgversion}-pyyaml
602 Requires: python
%{python3_pkgversion}-werkzeug
604 %if 0%{?suse_version}
605 Requires: python
%{python3_pkgversion}-CherryPy
606 Requires: python
%{python3_pkgversion}-PyYAML
607 Requires: python
%{python3_pkgversion}-Werkzeug
610 Recommends
: ceph
-mgr
-rook
= %{_epoch_prefix}%{version}-%{release}
612 %description mgr
-modules
-core
613 ceph
-mgr
-modules
-core provides a
set of modules which are always
618 Summary: Ceph Manager module
for Rook
-based orchestration
619 %if 0%{?suse_version}
620 Group: System
/Filesystems
622 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
623 Requires: python
%{python3_pkgversion}-kubernetes
624 Requires: python
%{python3_pkgversion}-jsonpatch
625 %description mgr
-rook
626 ceph
-mgr
-rook is a ceph
-mgr module
for orchestration functions using
629 %package mgr
-k8sevents
631 Summary: Ceph Manager module to orchestrate ceph
-events to kubernetes' events API
632 %if 0%{?suse_version}
633 Group: System
/Filesystems
635 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
636 Requires: python
%{python3_pkgversion}-kubernetes
637 %description mgr
-k8sevents
638 ceph
-mgr
-k8sevents is a ceph
-mgr module that sends every ceph
-events
639 to kubernetes' events API
642 Summary: Ceph Manager module
for cephadm
-based orchestration
644 %if 0%{?suse_version}
645 Group: System
/Filesystems
647 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
648 Requires: python
%{python3_pkgversion}-remoto
649 Requires: cephadm
= %{_epoch_prefix}%{version}-%{release}
650 %if 0%{?suse_version}
652 Requires: python
%{python3_pkgversion}-Jinja2
654 %if 0%{?rhel} || 0%{?fedora}
655 Requires: openssh
-clients
656 Requires: python
%{python3_pkgversion}-jinja2
658 %description mgr
-cephadm
659 ceph
-mgr
-cephadm is a ceph
-mgr module
for orchestration functions using
660 the integrated cephadm deployment tool management operations.
663 Summary: Ceph fuse
-based client
664 %if 0%{?suse_version}
665 Group: System
/Filesystems
668 Requires: python
%{python3_pkgversion}
670 FUSE based client
for Ceph distributed network file system
673 Summary: Ceph fuse
-based client
674 %if 0%{?suse_version}
675 Group: System
/Filesystems
677 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
678 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
679 %description -n rbd
-fuse
680 FUSE based client to map Ceph rbd images to files
682 %package -n rbd
-mirror
683 Summary: Ceph daemon
for mirroring RBD images
684 %if 0%{?suse_version}
685 Group: System
/Filesystems
687 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
688 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
689 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
690 %description -n rbd
-mirror
691 Daemon
for mirroring RBD images between Ceph clusters
, streaming
692 changes asynchronously.
694 %package immutable
-object
-cache
695 Summary: Ceph daemon
for immutable object cache
696 %if 0%{?suse_version}
697 Group: System
/Filesystems
699 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
700 %description immutable
-object
-cache
701 Daemon
for immutable object cache.
704 Summary: Ceph RBD client base on NBD
705 %if 0%{?suse_version}
706 Group: System
/Filesystems
708 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
709 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
710 %description -n rbd
-nbd
711 NBD based client to map Ceph rbd images to
local device
714 Summary: Rados REST gateway
715 %if 0%{?suse_version}
716 Group: System
/Filesystems
718 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
720 Requires: ceph
-selinux
= %{_epoch_prefix}%{version}-%{release}
722 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
723 Requires: librgw2
= %{_epoch_prefix}%{version}-%{release}
724 %if 0%{?rhel} || 0%{?fedora}
728 RADOS is a distributed object store used by the Ceph distributed
729 storage system. This package provides a REST gateway to the
730 object store that aims to implement a superset of Amazon's S3
731 service as well as the OpenStack Object Storage
("Swift"
) API.
734 %package resource
-agents
735 Summary: OCF
-compliant resource agents
for Ceph daemons
736 %if 0%{?suse_version}
737 Group: System
/Filesystems
739 Requires: ceph
-base
= %{_epoch_prefix}%{version}
740 Requires: resource
-agents
741 %description resource
-agents
742 Resource agents
for monitoring and managing Ceph daemons
743 under Open Cluster Framework
(OCF
) compliant resource
744 managers such as Pacemaker.
748 Summary: Ceph Object Storage Daemon
749 %if 0%{?suse_version}
750 Group: System
/Filesystems
752 Provides: ceph
-test:/usr
/bin
/ceph
-osdomap
-tool
753 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
756 Requires: libstoragemgmt
757 Requires: python
%{python3_pkgversion}-ceph-common = %{_epoch_prefix}%{version}-%{release}
760 Recommends
: smartmontools
763 ceph
-osd is the object storage daemon
for the Ceph distributed file
764 system. It is responsible
for storing objects on a
local file system
765 and providing access to them over the network.
769 Summary: Ceph Object Storage Daemon
(crimson
)
770 %if 0%{?suse_version}
771 Group: System
/Filesystems
773 Requires: ceph
-osd
= %{_epoch_prefix}%{version}-%{release}
774 %description crimson
-osd
775 crimson
-osd is the object storage daemon
for the Ceph distributed file
776 system. It is responsible
for storing objects on a
local file system
777 and providing access to them over the network.
780 %package -n librados2
781 Summary: RADOS distributed object store client library
782 %if 0%{?suse_version}
783 Group: System
/Libraries
785 %if 0%{?rhel} || 0%{?fedora}
786 Obsoletes
: ceph
-libs
< %{_epoch_prefix}%{version}-%{release}
788 %description -n librados2
789 RADOS is a reliable
, autonomic distributed object storage cluster
790 developed as part of the Ceph distributed storage system. This is a
791 shared library allowing applications to access the distributed object
792 store using a simple file
-like interface.
794 %package -n librados
-devel
795 Summary: RADOS headers
796 %if 0%{?suse_version}
797 Group: Development
/Libraries
/C and C
++
799 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
800 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
801 Provides: librados2
-devel
= %{_epoch_prefix}%{version}-%{release}
802 Obsoletes
: librados2
-devel
< %{_epoch_prefix}%{version}-%{release}
803 %description -n librados
-devel
804 This package contains C libraries and headers needed to develop programs
805 that use RADOS object store.
807 %package -n libradospp
-devel
808 Summary: RADOS headers
809 %if 0%{?suse_version}
810 Group: Development
/Libraries
/C and C
++
812 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
813 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
814 %description -n libradospp
-devel
815 This package contains C
++ libraries and headers needed to develop programs
816 that use RADOS object store.
819 Summary: RADOS gateway client library
820 %if 0%{?suse_version}
821 Group: System
/Libraries
823 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
824 %description -n librgw2
825 This package provides a library implementation of the RADOS gateway
826 (distributed object store with S3 and Swift personalities
).
828 %package -n librgw
-devel
829 Summary: RADOS gateway client library
830 %if 0%{?suse_version}
831 Group: Development
/Libraries
/C and C
++
833 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
834 Requires: librgw2
= %{_epoch_prefix}%{version}-%{release}
835 Provides: librgw2
-devel
= %{_epoch_prefix}%{version}-%{release}
836 Obsoletes
: librgw2
-devel
< %{_epoch_prefix}%{version}-%{release}
837 %description -n librgw
-devel
838 This package contains libraries and headers needed to develop programs
839 that use RADOS gateway client library.
841 %package -n python
%{python3_pkgversion}-rgw
842 Summary: Python
3 libraries
for the RADOS gateway
843 %if 0%{?suse_version}
844 Group: Development
/Libraries
/Python
846 Requires: librgw2
= %{_epoch_prefix}%{version}-%{release}
847 Requires: python
%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
848 %{?python_provide:%python_provide python%{python3_pkgversion}-rgw}
849 Provides: python
-rgw
= %{_epoch_prefix}%{version}-%{release}
850 Obsoletes
: python
-rgw
< %{_epoch_prefix}%{version}-%{release}
851 %description -n python
%{python3_pkgversion}-rgw
852 This package contains Python
3 libraries
for interacting with Cephs RADOS
855 %package -n python
%{python3_pkgversion}-rados
856 Summary: Python
3 libraries
for the RADOS object store
857 %if 0%{?suse_version}
858 Group: Development
/Libraries
/Python
860 Requires: python
%{python3_pkgversion}
861 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
862 %{?python_provide:%python_provide python%{python3_pkgversion}-rados}
863 Provides: python
-rados
= %{_epoch_prefix}%{version}-%{release}
864 Obsoletes
: python
-rados
< %{_epoch_prefix}%{version}-%{release}
865 %description -n python
%{python3_pkgversion}-rados
866 This package contains Python
3 libraries
for interacting with Cephs RADOS
869 %if 0%{with libradosstriper}
870 %package -n libradosstriper1
871 Summary: RADOS striping interface
872 %if 0%{?suse_version}
873 Group: System
/Libraries
875 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
876 %description -n libradosstriper1
877 Striping interface built on top of the rados library
, allowing
878 to stripe bigger objects onto several standard rados objects using
879 an interface very similar to the rados one.
881 %package -n libradosstriper
-devel
882 Summary: RADOS striping interface headers
883 %if 0%{?suse_version}
884 Group: Development
/Libraries
/C and C
++
886 Requires: libradosstriper1
= %{_epoch_prefix}%{version}-%{release}
887 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
888 Requires: libradospp
-devel
= %{_epoch_prefix}%{version}-%{release}
889 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
890 Provides: libradosstriper1
-devel
= %{_epoch_prefix}%{version}-%{release}
891 Obsoletes
: libradosstriper1
-devel
< %{_epoch_prefix}%{version}-%{release}
892 %description -n libradosstriper
-devel
893 This package contains libraries and headers needed to develop programs
894 that use RADOS striping interface.
898 Summary: RADOS block device client library
899 %if 0%{?suse_version}
900 Group: System
/Libraries
902 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
903 %if 0%{?suse_version}
904 Requires(post
): coreutils
906 %if 0%{?rhel} || 0%{?fedora}
907 Obsoletes
: ceph
-libs
< %{_epoch_prefix}%{version}-%{release}
909 %description -n librbd1
910 RBD is a block device striped across multiple distributed objects
in
911 RADOS
, a reliable
, autonomic distributed object storage cluster
912 developed as part of the Ceph distributed storage system. This is a
913 shared library allowing applications to manage these block devices.
915 %package -n librbd
-devel
916 Summary: RADOS block device headers
917 %if 0%{?suse_version}
918 Group: Development
/Libraries
/C and C
++
920 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
921 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
922 Requires: libradospp
-devel
= %{_epoch_prefix}%{version}-%{release}
923 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
924 Provides: librbd1
-devel
= %{_epoch_prefix}%{version}-%{release}
925 Obsoletes
: librbd1
-devel
< %{_epoch_prefix}%{version}-%{release}
926 %description -n librbd
-devel
927 This package contains libraries and headers needed to develop programs
928 that use RADOS block device.
930 %package -n python
%{python3_pkgversion}-rbd
931 Summary: Python
3 libraries
for the RADOS block device
932 %if 0%{?suse_version}
933 Group: Development
/Libraries
/Python
935 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
936 Requires: python
%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
937 %{?python_provide:%python_provide python%{python3_pkgversion}-rbd}
938 Provides: python
-rbd
= %{_epoch_prefix}%{version}-%{release}
939 Obsoletes
: python
-rbd
< %{_epoch_prefix}%{version}-%{release}
940 %description -n python
%{python3_pkgversion}-rbd
941 This package contains Python
3 libraries
for interacting with Cephs RADOS
944 %package -n libcephfs2
945 Summary: Ceph distributed file system client library
946 %if 0%{?suse_version}
947 Group: System
/Libraries
949 Obsoletes
: libcephfs1
< %{_epoch_prefix}%{version}-%{release}
950 %if 0%{?rhel} || 0%{?fedora}
951 Obsoletes
: ceph
-libs
< %{_epoch_prefix}%{version}-%{release}
952 Obsoletes
: ceph
-libcephfs
954 %description -n libcephfs2
955 Ceph is a distributed network file system designed to provide excellent
956 performance
, reliability
, and scalability. This is a shared library
957 allowing applications to access a Ceph distributed file system via a
958 POSIX
-like interface.
960 %package -n libcephfs
-devel
961 Summary: Ceph distributed file system headers
962 %if 0%{?suse_version}
963 Group: Development
/Libraries
/C and C
++
965 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
966 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
967 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
968 Provides: libcephfs2
-devel
= %{_epoch_prefix}%{version}-%{release}
969 Obsoletes
: libcephfs2
-devel
< %{_epoch_prefix}%{version}-%{release}
970 %description -n libcephfs
-devel
971 This package contains libraries and headers needed to develop programs
972 that use Cephs distributed file system.
974 %package -n python
%{python3_pkgversion}-cephfs
975 Summary: Python
3 libraries
for Ceph distributed file system
976 %if 0%{?suse_version}
977 Group: Development
/Libraries
/Python
979 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
980 Requires: python
%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
981 Requires: python
%{python3_pkgversion}-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
982 %{?python_provide:%python_provide python%{python3_pkgversion}-cephfs}
983 Provides: python
-cephfs
= %{_epoch_prefix}%{version}-%{release}
984 Obsoletes
: python
-cephfs
< %{_epoch_prefix}%{version}-%{release}
985 %description -n python
%{python3_pkgversion}-cephfs
986 This package contains Python
3 libraries
for interacting with Cephs distributed
989 %package -n python
%{python3_pkgversion}-ceph
-argparse
990 Summary: Python
3 utility libraries
for Ceph CLI
991 %if 0%{?suse_version}
992 Group: Development
/Libraries
/Python
994 %{?python_provide:%python_provide python%{python3_pkgversion}-ceph-argparse}
995 %description -n python
%{python3_pkgversion}-ceph
-argparse
996 This package contains types and routines
for Python
3 used by the Ceph CLI as
997 well as the RESTful interface. These have to
do with querying the daemons
for
998 command-description information
, validating user
command input against those
999 descriptions
, and submitting the
command to the appropriate daemon.
1001 %package -n python
%{python3_pkgversion}-ceph
-common
1002 Summary: Python
3 utility libraries
for Ceph
1003 %if 0%{?fedora} || 0%{?rhel} >= 8
1004 Requires: python
%{python3_pkgversion}-pyyaml
1006 %if 0%{?suse_version}
1007 Requires: python
%{python3_pkgversion}-PyYAML
1009 %if 0%{?suse_version}
1010 Group: Development
/Libraries
/Python
1012 %{?python_provide:%python_provide python%{python3_pkgversion}-ceph-common}
1013 %description -n python
%{python3_pkgversion}-ceph
-common
1014 This package contains data structures
, classes and functions used by Ceph.
1015 It also contains utilities used
for the cephadm orchestrator.
1017 %if 0%{with cephfs_shell}
1018 %package -n cephfs
-shell
1019 Summary: Interactive shell
for Ceph file system
1020 Requires: python
%{python3_pkgversion}-cmd2
1021 Requires: python
%{python3_pkgversion}-colorama
1022 Requires: python
%{python3_pkgversion}-cephfs
1023 %description -n cephfs
-shell
1024 This package contains an interactive tool that allows accessing a Ceph
1025 file system without mounting it by providing a nice pseudo
-shell which
1026 works like an FTP client.
1029 %if 0%{with ceph_test_package}
1030 %package -n ceph
-test
1031 Summary: Ceph benchmarks and
test tools
1032 %if 0%{?suse_version}
1033 Group: System
/Benchmark
1035 Requires: ceph
-common
= %{_epoch_prefix}%{version}-%{release}
1036 Requires: xmlstarlet
1039 %description -n ceph
-test
1040 This package contains Ceph benchmarks and
test tools.
1043 %if 0%{with cephfs_java}
1045 %package -n libcephfs_jni1
1046 Summary: Java Native Interface library
for CephFS Java bindings
1047 %if 0%{?suse_version}
1048 Group: System
/Libraries
1051 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
1052 %description -n libcephfs_jni1
1053 This package contains the Java Native Interface library
for CephFS Java
1056 %package -n libcephfs_jni
-devel
1057 Summary: Development files
for CephFS Java Native Interface library
1058 %if 0%{?suse_version}
1059 Group: Development
/Libraries
/Java
1062 Requires: libcephfs_jni1
= %{_epoch_prefix}%{version}-%{release}
1063 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
1064 Provides: libcephfs_jni1
-devel
= %{_epoch_prefix}%{version}-%{release}
1065 Obsoletes
: libcephfs_jni1
-devel
< %{_epoch_prefix}%{version}-%{release}
1066 %description -n libcephfs_jni
-devel
1067 This package contains the development files
for CephFS Java Native Interface
1070 %package -n cephfs
-java
1071 Summary: Java libraries
for the Ceph File System
1072 %if 0%{?suse_version}
1073 Group: System
/Libraries
1076 Requires: libcephfs_jni1
= %{_epoch_prefix}%{version}-%{release}
1078 BuildRequires
: junit
1079 %description -n cephfs
-java
1080 This package contains the Java libraries
for the Ceph File System.
1084 %package -n rados
-objclass
-devel
1085 Summary: RADOS object class development kit
1086 %if 0%{?suse_version}
1087 Group: Development
/Libraries
/C and C
++
1089 Requires: libradospp
-devel
= %{_epoch_prefix}%{version}-%{release}
1090 %description -n rados
-objclass
-devel
1091 This package contains libraries and headers needed to develop RADOS object
1094 %if 0%{with selinux}
1097 Summary: SELinux support
for Ceph MON
, OSD and MDS
1098 %if 0%{?suse_version}
1099 Group: System
/Filesystems
1101 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
1102 Requires: policycoreutils
, libselinux
-utils
1103 Requires(post
): ceph
-base
= %{_epoch_prefix}%{version}-%{release}
1104 Requires(post
): selinux
-policy
-base
>= %{_selinux_policy_version}, policycoreutils
, gawk
1105 Requires(postun
): policycoreutils
1106 %description selinux
1107 This package contains SELinux support
for Ceph MON
, OSD and MDS. The package
1108 also performs file
-system relabelling which can take a long
time on heavily
1109 populated file
-systems.
1113 %package grafana
-dashboards
1114 Summary: The
set of Grafana dashboards
for monitoring purposes
1116 %if 0%{?suse_version}
1117 Group: System
/Filesystems
1119 %description grafana
-dashboards
1120 This package provides a
set of Grafana dashboards
for monitoring of
1121 Ceph clusters. The dashboards require a Prometheus server setup
1122 collecting data from Ceph Manager "prometheus" module and Prometheus
1123 project "node_exporter" module. The dashboards are designed to be
1124 integrated with the Ceph Manager Dashboard web UI.
1126 %package prometheus
-alerts
1127 Summary: Prometheus alerts
for a Ceph deplyoment
1129 Group: System
/Monitoring
1130 %description prometheus
-alerts
1131 This package provides Ceph’s default alerts
for Prometheus.
1133 #################################################################################
1135 #################################################################################
1137 %autosetup -p1
-n ceph
-15.2.8
1140 # LTO can be enabled as soon as the following GCC bug is fixed:
1141 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200
1142 %define _lto_cflags
%{nil}
1145 .
/opt
/rh
/devtoolset
-8/enable
1148 %if 0%{with cephfs_java}
1150 for i
in /usr
/{lib64
,lib
}/jvm
/java
/include
{,/linux
}; do
1151 [ -d $i
] && java_inc
="$java_inc
-I$i"
1155 %if 0%{?suse_version}
1156 # the following setting fixed an OOM condition we once encountered in the OBS
1157 RPM_OPT_FLAGS
="$RPM_OPT_FLAGS
--param ggc
-min
-expand
=20 --param ggc
-min
-heapsize
=32768"
1160 export CPPFLAGS
="$java_inc"
1161 export CFLAGS
="$RPM_OPT_FLAGS"
1162 export CXXFLAGS
="$RPM_OPT_FLAGS"
1163 export LDFLAGS
="$RPM_LD_FLAGS"
1165 # Parallel build settings ...
1166 CEPH_MFLAGS_JOBS
="
%{?_smp_mflags}"
1167 CEPH_SMP_NCPUS
=$
(echo "$CEPH_MFLAGS_JOBS" | sed 's
/-j
//'
)
1168 %if 0%{?__isa_bits} == 32
1169 # 32-bit builds can use 3G memory max, which is not enough even for -j2
1172 # do not eat all memory
1173 echo "Available memory
:"
1175 echo "System limits
:"
1177 if test -n "$CEPH_SMP_NCPUS"
-a "$CEPH_SMP_NCPUS"
-gt
1 ; then
1178 mem_per_process
=2500
1179 max_mem
=$
(LANG
=C free
-m | sed
-n "s|^Mem
: *\
([0-9]*\
).
*$|\
1|p"
)
1180 max_jobs
="$
(($max_mem
/ $mem_per_process
))"
1181 test "$CEPH_SMP_NCPUS"
-gt "$max_jobs"
&& CEPH_SMP_NCPUS
="$max_jobs"
&& echo "Warning
: Reducing build parallelism to
-j$max_jobs because of memory limits"
1182 test "$CEPH_SMP_NCPUS"
-le
0 && CEPH_SMP_NCPUS
="
1"
&& echo "Warning
: Not using parallel build at all because of memory limits"
1184 export CEPH_SMP_NCPUS
1185 export CEPH_MFLAGS_JOBS
="
-j$CEPH_SMP_NCPUS"
1197 -DCMAKE_INSTALL_PREFIX
=%{_prefix} \
1198 -DCMAKE_INSTALL_LIBDIR
=%{_libdir} \
1199 -DCMAKE_INSTALL_LIBEXECDIR
=%{_libexecdir} \
1200 -DCMAKE_INSTALL_LOCALSTATEDIR
=%{_localstatedir} \
1201 -DCMAKE_INSTALL_SYSCONFDIR
=%{_sysconfdir} \
1202 -DCMAKE_INSTALL_MANDIR
=%{_mandir} \
1203 -DCMAKE_INSTALL_DOCDIR
=%{_docdir}/ceph \
1204 -DCMAKE_INSTALL_INCLUDEDIR
=%{_includedir} \
1206 -DWITH_PYTHON3
=%{python3_version} \
1207 -DWITH_MGR_DASHBOARD_FRONTEND
=OFF \
1208 %if 0%{without ceph_test_package}
1211 %if 0%{with cephfs_java}
1212 -DWITH_CEPHFS_JAVA
=ON \
1214 %if 0%{with selinux}
1219 -DWITH_BABELTRACE
=ON \
1222 -DWITH_BABELTRACE
=OFF \
1224 $CEPH_EXTRA_CMAKE_ARGS \
1228 %ifarch aarch64 armv7hl mips mipsel ppc ppc64 ppc64le
%{ix86} x86_64
1229 -DWITH_BOOST_CONTEXT
=ON \
1231 -DWITH_BOOST_CONTEXT
=OFF \
1233 %if 0%{with cephfs_shell}
1234 -DWITH_CEPHFS_SHELL
=ON \
1236 %if 0%{with libradosstriper}
1237 -DWITH_LIBRADOSSTRIPER
=ON \
1239 -DWITH_LIBRADOSSTRIPER
=OFF \
1241 %if 0%{with amqp_endpoint}
1242 -DWITH_RADOSGW_AMQP_ENDPOINT
=ON \
1244 -DWITH_RADOSGW_AMQP_ENDPOINT
=OFF \
1246 %if 0%{with kafka_endpoint}
1247 -DWITH_RADOSGW_KAFKA_ENDPOINT
=ON \
1249 -DWITH_RADOSGW_KAFKA_ENDPOINT
=OFF \
1251 %if 0%{with cmake_verbose_logging}
1252 -DCMAKE_VERBOSE_MAKEFILE
=ON \
1254 -DBOOST_J
=$CEPH_SMP_NCPUS \
1257 %if %{with cmake_verbose_logging}
1258 cat .
/CMakeFiles
/CMakeOutput.log
1259 cat .
/CMakeFiles
/CMakeError.log
1262 make "$CEPH_MFLAGS_JOBS"
1265 %if 0%{with make_check}
1267 # run in-tree unittests
1269 ctest "$CEPH_MFLAGS_JOBS"
1275 make DESTDIR
=%{buildroot} install
1276 # we have dropped sysvinit bits
1277 rm -f
%{buildroot}/%{_sysconfdir}/init.d
/ceph
1279 install -m
0644 -D src
/etc
-rbdmap
%{buildroot}%{_sysconfdir}/ceph
/rbdmap
1280 %if 0%{?fedora} || 0%{?rhel}
1281 install -m
0644 -D etc
/sysconfig
/ceph
%{buildroot}%{_sysconfdir}/sysconfig
/ceph
1283 %if 0%{?suse_version}
1284 install -m
0644 -D etc
/sysconfig
/ceph
%{buildroot}%{_fillupdir}/sysconfig.%{name}
1286 install -m
0644 -D systemd
/ceph.tmpfiles.d
%{buildroot}%{_tmpfilesdir}/ceph
-common.conf
1287 install -m
0644 -D systemd
/50-ceph.preset
%{buildroot}%{_libexecdir}/systemd
/system
-preset
/50-ceph.preset
1288 mkdir -p
%{buildroot}%{_sbindir}
1289 install -m
0644 -D src
/logrotate.conf
%{buildroot}%{_sysconfdir}/logrotate.d
/ceph
1290 chmod
0644 %{buildroot}%{_docdir}/ceph
/sample.ceph.conf
1291 install -m
0644 -D COPYING
%{buildroot}%{_docdir}/ceph
/COPYING
1292 install -m
0644 -D etc
/sysctl
/90-ceph
-osd.conf
%{buildroot}%{_sysctldir}/90-ceph
-osd.conf
1294 install -m
0755 src
/cephadm
/cephadm
%{buildroot}%{_sbindir}/cephadm
1295 mkdir -p
%{buildroot}%{_sharedstatedir}/cephadm
1296 chmod
0700 %{buildroot}%{_sharedstatedir}/cephadm
1297 mkdir -p
%{buildroot}%{_sharedstatedir}/cephadm
/.ssh
1298 chmod
0700 %{buildroot}%{_sharedstatedir}/cephadm
/.ssh
1299 touch
%{buildroot}%{_sharedstatedir}/cephadm
/.ssh
/authorized_keys
1300 chmod
0600 %{buildroot}%{_sharedstatedir}/cephadm
/.ssh
/authorized_keys
1302 # firewall templates and /sbin/mount.ceph symlink
1303 %if 0%{?suse_version}
1304 mkdir -p
%{buildroot}/sbin
1305 ln
-sf
%{_sbindir}/mount.ceph %{buildroot}/sbin
/mount.ceph
1309 install -m
0644 -D udev
/50-rbd.rules
%{buildroot}%{_udevrulesdir}/50-rbd.rules
1312 install -m
0600 -D sudoers.d
/ceph
-osd
-smartctl
%{buildroot}%{_sysconfdir}/sudoers.d
/ceph
-osd
-smartctl
1315 pathfix.py
-pni "
%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
1316 pathfix.py
-pni "
%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/*
1319 #set up placeholder directories
1320 mkdir -p
%{buildroot}%{_sysconfdir}/ceph
1321 mkdir -p
%{buildroot}%{_localstatedir}/run
/ceph
1322 mkdir -p
%{buildroot}%{_localstatedir}/log
/ceph
1323 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/tmp
1324 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/mon
1325 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/osd
1326 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/mds
1327 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/mgr
1328 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/crash
1329 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/crash
/posted
1330 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/radosgw
1331 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-osd
1332 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-mds
1333 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-rgw
1334 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-mgr
1335 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-rbd
1336 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-rbd
-mirror
1339 install -m
644 -D monitoring
/prometheus
/alerts
/ceph_default_alerts.yml
%{buildroot}/etc
/prometheus
/ceph
/ceph_default_alerts.yml
1341 %if 0%{?suse_version}
1342 # create __pycache__ directories and their contents
1343 %py3_compile %{buildroot}%{python3_sitelib}
1344 # hardlink duplicate files under /usr to save space
1345 %fdupes %{buildroot}%{_prefix}
1349 %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}
1355 #################################################################################
1356 # files and systemd scriptlets
1357 #################################################################################
1361 %{_bindir}/ceph
-crash
1362 %{_bindir}/crushtool
1363 %{_bindir}/monmaptool
1364 %{_bindir}/osdmaptool
1365 %{_bindir}/ceph
-kvstore
-tool
1367 %{_libexecdir}/systemd
/system
-preset
/50-ceph.preset
1368 %{_sbindir}/ceph
-create
-keys
1369 %dir %{_libexecdir}/ceph
1370 %{_libexecdir}/ceph
/ceph_common.sh
1371 %dir %{_libdir}/rados
-classes
1372 %{_libdir}/rados
-classes
/*
1373 %dir %{_libdir}/ceph
1374 %dir %{_libdir}/ceph
/erasure
-code
1375 %{_libdir}/ceph
/erasure
-code
/libec_
*.so
*
1376 %dir %{_libdir}/ceph
/compressor
1377 %{_libdir}/ceph
/compressor
/libceph_
*.so
*
1378 %{_unitdir}/ceph
-crash.service
1379 %dir %{_libdir}/ceph
/crypto
1380 %{_libdir}/ceph
/crypto
/libceph_
*.so
*
1382 %{_libdir}/libos_tp.so
*
1383 %{_libdir}/libosd_tp.so
*
1385 %config(noreplace
) %{_sysconfdir}/logrotate.d
/ceph
1386 %if 0%{?fedora} || 0%{?rhel}
1387 %config(noreplace
) %{_sysconfdir}/sysconfig
/ceph
1389 %if 0%{?suse_version}
1390 %{_fillupdir}/sysconfig.
*
1392 %{_unitdir}/ceph.target
1393 %dir %{python3_sitelib}/ceph_volume
1394 %{python3_sitelib}/ceph_volume
/*
1395 %{python3_sitelib}/ceph_volume
-*
1396 %{_mandir}/man8
/ceph
-deploy
.8*
1397 %{_mandir}/man8
/ceph
-create
-keys
.8*
1398 %{_mandir}/man8
/ceph
-run
.8*
1399 %{_mandir}/man8
/crushtool
.8*
1400 %{_mandir}/man8
/osdmaptool
.8*
1401 %{_mandir}/man8
/monmaptool
.8*
1402 %{_mandir}/man8
/ceph
-kvstore
-tool
.8*
1403 #set up placeholder directories
1404 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/crash
1405 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/crash
/posted
1406 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/tmp
1407 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-osd
1408 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-mds
1409 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-rgw
1410 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-mgr
1411 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-rbd
1412 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-rbd
-mirror
1416 %if 0%{?suse_version}
1418 if [ $
1 -eq
1 ] ; then
1419 /usr
/bin
/systemctl preset ceph.target ceph
-crash.service
>/dev
/null
2>&1 ||
:
1422 %if 0%{?fedora} || 0%{?rhel}
1423 %systemd_post ceph.target ceph
-crash.service
1425 if [ $
1 -eq
1 ] ; then
1426 /usr
/bin
/systemctl start ceph.target ceph
-crash.service
>/dev
/null
2>&1 ||
:
1430 %if 0%{?suse_version}
1431 %service_del_preun ceph.target ceph
-crash.service
1433 %if 0%{?fedora} || 0%{?rhel}
1434 %systemd_preun ceph.target ceph
-crash.service
1439 %if 0%{?suse_version}
1440 DISABLE_RESTART_ON_UPDATE
="yes"
1441 %service_del_postun ceph.target
1443 %if 0%{?fedora} || 0%{?rhel}
1444 %systemd_postun ceph.target
1446 if [ $
1 -ge
1 ] ; then
1447 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1448 # "yes". In any case: if units are not running, do not touch them.
1449 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1450 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1451 source $SYSCONF_CEPH
1456 getent group cephadm
>/dev
/null || groupadd
-r cephadm
1457 getent passwd cephadm
>/dev
/null || useradd
-r
-g cephadm
-s
/bin
/bash
-c "cephadm user
for mgr
/cephadm"
-d
%{_sharedstatedir}/cephadm cephadm
1460 %if ! 0%{?suse_version}
1462 userdel
-r cephadm || true
1468 %{_mandir}/man8
/cephadm
.8*
1469 %attr(0700,cephadm
,cephadm
) %dir %{_sharedstatedir}/cephadm
1470 %attr(0700,cephadm
,cephadm
) %dir %{_sharedstatedir}/cephadm
/.ssh
1471 %attr(0600,cephadm
,cephadm
) %{_sharedstatedir}/cephadm
/.ssh
/authorized_keys
1474 %dir %{_docdir}/ceph
1475 %doc %{_docdir}/ceph
/sample.ceph.conf
1476 %license %{_docdir}/ceph
/COPYING
1478 %{_bindir}/ceph
-authtool
1479 %{_bindir}/ceph
-conf
1480 %{_bindir}/ceph
-dencoder
1481 %{_bindir}/ceph
-rbdnamer
1483 %{_bindir}/cephfs
-data
-scan
1484 %{_bindir}/cephfs
-journal
-tool
1485 %{_bindir}/cephfs
-table
-tool
1487 %{_bindir}/radosgw
-admin
1489 %{_bindir}/rbd
-replay
1490 %{_bindir}/rbd
-replay
-many
1492 %{_sbindir}/mount.ceph
1493 %if 0%{?suse_version}
1497 %{_bindir}/rbd
-replay
-prep
1499 %{_bindir}/ceph
-post
-file
1500 %{_tmpfilesdir}/ceph
-common.conf
1501 %{_mandir}/man8
/ceph
-authtool
.8*
1502 %{_mandir}/man8
/ceph
-conf
.8*
1503 %{_mandir}/man8
/ceph
-dencoder
.8*
1504 %{_mandir}/man8
/ceph
-diff
-sorted
.8*
1505 %{_mandir}/man8
/ceph
-rbdnamer
.8*
1506 %{_mandir}/man8
/ceph
-syn
.8*
1507 %{_mandir}/man8
/ceph
-post
-file
.8*
1508 %{_mandir}/man8
/ceph
.8*
1509 %{_mandir}/man8
/mount.ceph
.8*
1510 %{_mandir}/man8
/rados
.8*
1511 %{_mandir}/man8
/radosgw
-admin
.8*
1512 %{_mandir}/man8
/rbd
.8*
1513 %{_mandir}/man8
/rbdmap
.8*
1514 %{_mandir}/man8
/rbd
-replay
.8*
1515 %{_mandir}/man8
/rbd
-replay
-many
.8*
1516 %{_mandir}/man8
/rbd
-replay
-prep
.8*
1517 %{_mandir}/man8
/rgw
-orphan
-list
.8*
1518 %dir %{_datadir}/ceph
/
1519 %{_datadir}/ceph
/known_hosts_drop.ceph.com
1520 %{_datadir}/ceph
/id_rsa_drop.ceph.com
1521 %{_datadir}/ceph
/id_rsa_drop.ceph.com.pub
1522 %dir %{_sysconfdir}/ceph
/
1523 %config %{_sysconfdir}/bash_completion.d
/ceph
1524 %config %{_sysconfdir}/bash_completion.d
/rados
1525 %config %{_sysconfdir}/bash_completion.d
/rbd
1526 %config %{_sysconfdir}/bash_completion.d
/radosgw
-admin
1527 %config(noreplace
) %{_sysconfdir}/ceph
/rbdmap
1528 %{_unitdir}/rbdmap.service
1529 %dir %{_udevrulesdir}
1530 %{_udevrulesdir}/50-rbd.rules
1531 %attr(3770,ceph
,ceph
) %dir %{_localstatedir}/log
/ceph
/
1532 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/
1537 %if 0%{?rhel} || 0%{?fedora}
1538 /usr
/sbin
/groupadd ceph
-g $CEPH_GROUP_ID
-o
-r
2>/dev
/null ||
:
1539 /usr
/sbin
/useradd ceph
-u $CEPH_USER_ID
-o
-r
-g ceph
-s
/sbin
/nologin
-c "Ceph daemons"
-d
%{_localstatedir}/lib
/ceph
2>/dev
/null ||
:
1541 %if 0%{?suse_version}
1542 if ! getent group ceph
>/dev
/null
; then
1543 CEPH_GROUP_ID_OPTION
=""
1544 getent group $CEPH_GROUP_ID
>/dev
/null || CEPH_GROUP_ID_OPTION
="
-g $CEPH_GROUP_ID"
1545 groupadd ceph $CEPH_GROUP_ID_OPTION
-r
2>/dev
/null ||
:
1547 if ! getent passwd ceph
>/dev
/null
; then
1548 CEPH_USER_ID_OPTION
=""
1549 getent passwd $CEPH_USER_ID
>/dev
/null || CEPH_USER_ID_OPTION
="
-u $CEPH_USER_ID"
1550 useradd ceph $CEPH_USER_ID_OPTION
-r
-g ceph
-s
/sbin
/nologin
2>/dev
/null ||
:
1552 usermod
-c "Ceph storage service" \
1553 -d
%{_localstatedir}/lib
/ceph \
1561 %tmpfiles_create %{_tmpfilesdir}/ceph
-common.conf
1564 # Package removal cleanup
1565 if [ "$
1"
-eq "
0"
] ; then
1566 rm -rf
%{_localstatedir}/log
/ceph
1567 rm -rf
%{_sysconfdir}/ceph
1572 %{_mandir}/man8
/ceph
-mds
.8*
1573 %{_unitdir}/ceph
-mds@.service
1574 %{_unitdir}/ceph
-mds.target
1575 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/mds
1578 %if 0%{?suse_version}
1579 if [ $
1 -eq
1 ] ; then
1580 /usr
/bin
/systemctl preset ceph
-mds@\
*.service ceph
-mds.target
>/dev
/null
2>&1 ||
:
1583 %if 0%{?fedora} || 0%{?rhel}
1584 %systemd_post ceph
-mds@\
*.service ceph
-mds.target
1586 if [ $
1 -eq
1 ] ; then
1587 /usr
/bin
/systemctl start ceph
-mds.target
>/dev
/null
2>&1 ||
:
1591 %if 0%{?suse_version}
1592 %service_del_preun ceph
-mds@\
*.service ceph
-mds.target
1594 %if 0%{?fedora} || 0%{?rhel}
1595 %systemd_preun ceph
-mds@\
*.service ceph
-mds.target
1599 %if 0%{?suse_version}
1600 DISABLE_RESTART_ON_UPDATE
="yes"
1601 %service_del_postun ceph
-mds@\
*.service ceph
-mds.target
1603 %if 0%{?fedora} || 0%{?rhel}
1604 %systemd_postun ceph
-mds@\
*.service ceph
-mds.target
1606 if [ $
1 -ge
1 ] ; then
1607 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1608 # "yes". In any case: if units are not running, do not touch them.
1609 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1610 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1611 source $SYSCONF_CEPH
1613 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1614 /usr
/bin
/systemctl try
-restart ceph
-mds@\
*.service
> /dev
/null
2>&1 ||
:
1620 %dir %{_datadir}/ceph
/mgr
1621 %{_datadir}/ceph
/mgr
/mgr_module.
*
1622 %{_datadir}/ceph
/mgr
/mgr_util.
*
1624 %{_datadir}/ceph
/mgr
/__pycache__
1626 %{_unitdir}/ceph
-mgr@.service
1627 %{_unitdir}/ceph
-mgr.target
1628 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/mgr
1631 %if 0%{?suse_version}
1632 if [ $
1 -eq
1 ] ; then
1633 /usr
/bin
/systemctl preset ceph
-mgr@\
*.service ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1636 %if 0%{?fedora} || 0%{?rhel}
1637 %systemd_post ceph
-mgr@\
*.service ceph
-mgr.target
1639 if [ $
1 -eq
1 ] ; then
1640 /usr
/bin
/systemctl start ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1644 %if 0%{?suse_version}
1645 %service_del_preun ceph
-mgr@\
*.service ceph
-mgr.target
1647 %if 0%{?fedora} || 0%{?rhel}
1648 %systemd_preun ceph
-mgr@\
*.service ceph
-mgr.target
1652 %if 0%{?suse_version}
1653 DISABLE_RESTART_ON_UPDATE
="yes"
1654 %service_del_postun ceph
-mgr@\
*.service ceph
-mgr.target
1656 %if 0%{?fedora} || 0%{?rhel}
1657 %systemd_postun ceph
-mgr@\
*.service ceph
-mgr.target
1659 if [ $
1 -ge
1 ] ; then
1660 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1661 # "yes". In any case: if units are not running, do not touch them.
1662 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1663 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1664 source $SYSCONF_CEPH
1666 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1667 /usr
/bin
/systemctl try
-restart ceph
-mgr@\
*.service
> /dev
/null
2>&1 ||
:
1671 %files mgr
-dashboard
1672 %{_datadir}/ceph
/mgr
/dashboard
1675 if [ $
1 -eq
1 ] ; then
1676 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1679 %postun mgr
-dashboard
1680 if [ $
1 -eq
1 ] ; then
1681 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1684 %files mgr
-diskprediction
-local
1685 %{_datadir}/ceph
/mgr
/diskprediction_local
1687 %post mgr
-diskprediction
-local
1688 if [ $
1 -eq
1 ] ; then
1689 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1692 %postun mgr
-diskprediction
-local
1693 if [ $
1 -eq
1 ] ; then
1694 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1697 %files mgr
-diskprediction
-cloud
1698 %{_datadir}/ceph
/mgr
/diskprediction_cloud
1700 %post mgr
-diskprediction
-cloud
1701 if [ $
1 -eq
1 ] ; then
1702 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1705 %postun mgr
-diskprediction
-cloud
1706 if [ $
1 -eq
1 ] ; then
1707 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1710 %files mgr
-modules
-core
1711 %dir %{_datadir}/ceph
/mgr
1712 %{_datadir}/ceph
/mgr
/alerts
1713 %{_datadir}/ceph
/mgr
/balancer
1714 %{_datadir}/ceph
/mgr
/crash
1715 %{_datadir}/ceph
/mgr
/devicehealth
1716 %{_datadir}/ceph
/mgr
/influx
1717 %{_datadir}/ceph
/mgr
/insights
1718 %{_datadir}/ceph
/mgr
/iostat
1719 %{_datadir}/ceph
/mgr
/localpool
1720 %{_datadir}/ceph
/mgr
/orchestrator
1721 %{_datadir}/ceph
/mgr
/osd_perf_query
1722 %{_datadir}/ceph
/mgr
/osd_support
1723 %{_datadir}/ceph
/mgr
/pg_autoscaler
1724 %{_datadir}/ceph
/mgr
/progress
1725 %{_datadir}/ceph
/mgr
/prometheus
1726 %{_datadir}/ceph
/mgr
/rbd_support
1727 %{_datadir}/ceph
/mgr
/restful
1728 %{_datadir}/ceph
/mgr
/selftest
1729 %{_datadir}/ceph
/mgr
/status
1730 %{_datadir}/ceph
/mgr
/telegraf
1731 %{_datadir}/ceph
/mgr
/telemetry
1732 %{_datadir}/ceph
/mgr
/test_orchestrator
1733 %{_datadir}/ceph
/mgr
/volumes
1734 %{_datadir}/ceph
/mgr
/zabbix
1737 %{_datadir}/ceph
/mgr
/rook
1740 if [ $
1 -eq
1 ] ; then
1741 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1745 if [ $
1 -eq
1 ] ; then
1746 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1749 %files mgr
-k8sevents
1750 %{_datadir}/ceph
/mgr
/k8sevents
1753 if [ $
1 -eq
1 ] ; then
1754 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1757 %postun mgr
-k8sevents
1758 if [ $
1 -eq
1 ] ; then
1759 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1763 %{_datadir}/ceph
/mgr
/cephadm
1766 if [ $
1 -eq
1 ] ; then
1767 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1771 if [ $
1 -eq
1 ] ; then
1772 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1777 %{_bindir}/ceph
-monstore
-tool
1778 %{_mandir}/man8
/ceph
-mon
.8*
1779 %{_unitdir}/ceph
-mon@.service
1780 %{_unitdir}/ceph
-mon.target
1781 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/mon
1784 %if 0%{?suse_version}
1785 if [ $
1 -eq
1 ] ; then
1786 /usr
/bin
/systemctl preset ceph
-mon@\
*.service ceph
-mon.target
>/dev
/null
2>&1 ||
:
1789 %if 0%{?fedora} || 0%{?rhel}
1790 %systemd_post ceph
-mon@\
*.service ceph
-mon.target
1792 if [ $
1 -eq
1 ] ; then
1793 /usr
/bin
/systemctl start ceph
-mon.target
>/dev
/null
2>&1 ||
:
1797 %if 0%{?suse_version}
1798 %service_del_preun ceph
-mon@\
*.service ceph
-mon.target
1800 %if 0%{?fedora} || 0%{?rhel}
1801 %systemd_preun ceph
-mon@\
*.service ceph
-mon.target
1805 %if 0%{?suse_version}
1806 DISABLE_RESTART_ON_UPDATE
="yes"
1807 %service_del_postun ceph
-mon@\
*.service ceph
-mon.target
1809 %if 0%{?fedora} || 0%{?rhel}
1810 %systemd_postun ceph
-mon@\
*.service ceph
-mon.target
1812 if [ $
1 -ge
1 ] ; then
1813 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1814 # "yes". In any case: if units are not running, do not touch them.
1815 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1816 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1817 source $SYSCONF_CEPH
1819 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1820 /usr
/bin
/systemctl try
-restart ceph
-mon@\
*.service
> /dev
/null
2>&1 ||
:
1825 %{_bindir}/ceph
-fuse
1826 %{_mandir}/man8
/ceph
-fuse
.8*
1827 %{_sbindir}/mount.fuse.ceph
1828 %{_unitdir}/ceph
-fuse@.service
1829 %{_unitdir}/ceph
-fuse.target
1833 %{_mandir}/man8
/rbd
-fuse
.8*
1835 %files -n rbd
-mirror
1836 %{_bindir}/rbd
-mirror
1837 %{_mandir}/man8
/rbd
-mirror
.8*
1838 %{_unitdir}/ceph
-rbd
-mirror@.service
1839 %{_unitdir}/ceph
-rbd
-mirror.target
1842 %if 0%{?suse_version}
1843 if [ $
1 -eq
1 ] ; then
1844 /usr
/bin
/systemctl preset ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
>/dev
/null
2>&1 ||
:
1847 %if 0%{?fedora} || 0%{?rhel}
1848 %systemd_post ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1850 if [ $
1 -eq
1 ] ; then
1851 /usr
/bin
/systemctl start ceph
-rbd
-mirror.target
>/dev
/null
2>&1 ||
:
1854 %preun -n rbd
-mirror
1855 %if 0%{?suse_version}
1856 %service_del_preun ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1858 %if 0%{?fedora} || 0%{?rhel}
1859 %systemd_preun ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1862 %postun -n rbd
-mirror
1863 %if 0%{?suse_version}
1864 DISABLE_RESTART_ON_UPDATE
="yes"
1865 %service_del_postun ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1867 %if 0%{?fedora} || 0%{?rhel}
1868 %systemd_postun ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1870 if [ $
1 -ge
1 ] ; then
1871 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1872 # "yes". In any case: if units are not running, do not touch them.
1873 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1874 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1875 source $SYSCONF_CEPH
1877 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1878 /usr
/bin
/systemctl try
-restart ceph
-rbd
-mirror@\
*.service
> /dev
/null
2>&1 ||
:
1882 %files immutable
-object
-cache
1883 %{_bindir}/ceph
-immutable
-object
-cache
1884 %{_mandir}/man8
/ceph
-immutable
-object
-cache
.8*
1885 %{_unitdir}/ceph
-immutable
-object
-cache@.service
1886 %{_unitdir}/ceph
-immutable
-object
-cache.target
1888 %post immutable
-object
-cache
1889 %if 0%{?suse_version}
1890 if [ $
1 -eq
1 ] ; then
1891 /usr
/bin
/systemctl preset ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
>/dev
/null
2>&1 ||
:
1894 %if 0%{?fedora} || 0%{?rhel}
1895 %systemd_post ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1897 if [ $
1 -eq
1 ] ; then
1898 /usr
/bin
/systemctl start ceph
-immutable
-object
-cache.target
>/dev
/null
2>&1 ||
:
1901 %preun immutable
-object
-cache
1902 %if 0%{?suse_version}
1903 %service_del_preun ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1905 %if 0%{?fedora} || 0%{?rhel}
1906 %systemd_preun ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1909 %postun immutable
-object
-cache
1910 test -n "$FIRST_ARG" || FIRST_ARG
=$
1
1911 %if 0%{?suse_version}
1912 DISABLE_RESTART_ON_UPDATE
="yes"
1913 %service_del_postun ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1915 %if 0%{?fedora} || 0%{?rhel}
1916 %systemd_postun ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1918 if [ $FIRST_ARG
-ge
1 ] ; then
1919 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1920 # "yes". In any case: if units are not running, do not touch them.
1921 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1922 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1923 source $SYSCONF_CEPH
1925 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1926 /usr
/bin
/systemctl try
-restart ceph
-immutable
-object
-cache@\
*.service
> /dev
/null
2>&1 ||
:
1932 %{_mandir}/man8
/rbd
-nbd
.8*
1935 %{_bindir}/ceph
-diff
-sorted
1937 %{_bindir}/radosgw
-token
1938 %{_bindir}/radosgw
-es
1939 %{_bindir}/radosgw
-object
-expirer
1940 %{_bindir}/rgw
-orphan
-list
1941 %{_libdir}/libradosgw.so
*
1942 %{_mandir}/man8
/radosgw
.8*
1943 %dir %{_localstatedir}/lib
/ceph
/radosgw
1944 %{_unitdir}/ceph
-radosgw@.service
1945 %{_unitdir}/ceph
-radosgw.target
1949 %if 0%{?suse_version}
1950 if [ $
1 -eq
1 ] ; then
1951 /usr
/bin
/systemctl preset ceph
-radosgw@\
*.service ceph
-radosgw.target
>/dev
/null
2>&1 ||
:
1954 %if 0%{?fedora} || 0%{?rhel}
1955 %systemd_post ceph
-radosgw@\
*.service ceph
-radosgw.target
1957 if [ $
1 -eq
1 ] ; then
1958 /usr
/bin
/systemctl start ceph
-radosgw.target
>/dev
/null
2>&1 ||
:
1962 %if 0%{?suse_version}
1963 %service_del_preun ceph
-radosgw@\
*.service ceph
-radosgw.target
1965 %if 0%{?fedora} || 0%{?rhel}
1966 %systemd_preun ceph
-radosgw@\
*.service ceph
-radosgw.target
1971 %if 0%{?suse_version}
1972 DISABLE_RESTART_ON_UPDATE
="yes"
1973 %service_del_postun ceph
-radosgw@\
*.service ceph
-radosgw.target
1975 %if 0%{?fedora} || 0%{?rhel}
1976 %systemd_postun ceph
-radosgw@\
*.service ceph
-radosgw.target
1978 if [ $
1 -ge
1 ] ; then
1979 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1980 # "yes". In any case: if units are not running, do not touch them.
1981 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1982 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1983 source $SYSCONF_CEPH
1985 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1986 /usr
/bin
/systemctl try
-restart ceph
-radosgw@\
*.service
> /dev
/null
2>&1 ||
:
1991 %{_bindir}/ceph
-clsinfo
1992 %{_bindir}/ceph
-bluestore
-tool
1993 %{_bindir}/ceph
-objectstore
-tool
1994 %{_bindir}/ceph
-osdomap
-tool
1996 %{_libexecdir}/ceph
/ceph
-osd
-prestart.sh
1997 %{_sbindir}/ceph
-volume
1998 %{_sbindir}/ceph
-volume
-systemd
1999 %{_mandir}/man8
/ceph
-clsinfo
.8*
2000 %{_mandir}/man8
/ceph
-osd
.8*
2001 %{_mandir}/man8
/ceph
-bluestore
-tool
.8*
2002 %{_mandir}/man8
/ceph
-volume
.8*
2003 %{_mandir}/man8
/ceph
-volume
-systemd
.8*
2004 %{_unitdir}/ceph
-osd@.service
2005 %{_unitdir}/ceph
-osd.target
2006 %{_unitdir}/ceph
-volume@.service
2007 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/osd
2008 %config(noreplace
) %{_sysctldir}/90-ceph
-osd.conf
2009 %{_sysconfdir}/sudoers.d
/ceph
-osd
-smartctl
2012 %if 0%{?suse_version}
2013 if [ $
1 -eq
1 ] ; then
2014 /usr
/bin
/systemctl preset ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
>/dev
/null
2>&1 ||
:
2017 %if 0%{?fedora} || 0%{?rhel}
2018 %systemd_post ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2020 if [ $
1 -eq
1 ] ; then
2021 /usr
/bin
/systemctl start ceph
-osd.target
>/dev
/null
2>&1 ||
:
2023 %if 0%{?sysctl_apply}
2024 %sysctl_apply 90-ceph
-osd.conf
2026 /usr
/lib
/systemd
/systemd
-sysctl
%{_sysctldir}/90-ceph
-osd.conf
> /dev
/null
2>&1 ||
:
2030 %if 0%{?suse_version}
2031 %service_del_preun ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2033 %if 0%{?fedora} || 0%{?rhel}
2034 %systemd_preun ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2038 %if 0%{?suse_version}
2039 DISABLE_RESTART_ON_UPDATE
="yes"
2040 %service_del_postun ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2042 %if 0%{?fedora} || 0%{?rhel}
2043 %systemd_postun ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2045 if [ $
1 -ge
1 ] ; then
2046 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
2047 # "yes". In any case: if units are not running, do not touch them.
2048 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
2049 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
2050 source $SYSCONF_CEPH
2052 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
2053 /usr
/bin
/systemctl try
-restart ceph
-osd@\
*.service ceph
-volume@\
*.service
> /dev
/null
2>&1 ||
:
2057 %if 0%{with seastar}
2059 %{_bindir}/crimson
-osd
2064 %files resource
-agents
2065 %dir %{_prefix}/lib
/ocf
2066 %dir %{_prefix}/lib
/ocf
/resource.d
2067 %dir %{_prefix}/lib
/ocf
/resource.d
/ceph
2068 %attr(0755,-,-) %{_prefix}/lib
/ocf
/resource.d
/ceph
/rbd
2073 %{_libdir}/librados.so.
*
2074 %dir %{_libdir}/ceph
2075 %{_libdir}/ceph
/libceph
-common.so.
*
2077 %{_libdir}/librados_tp.so.
*
2079 %dir %{_sysconfdir}/ceph
2081 %post -n librados2
-p
/sbin
/ldconfig
2083 %postun -n librados2
-p
/sbin
/ldconfig
2085 %files -n librados
-devel
2086 %dir %{_includedir}/rados
2087 %{_includedir}/rados
/librados.h
2088 %{_includedir}/rados
/rados_types.h
2089 %{_libdir}/librados.so
2091 %{_libdir}/librados_tp.so
2093 %{_bindir}/librados
-config
2094 %{_mandir}/man8
/librados
-config
.8*
2096 %files -n libradospp
-devel
2097 %dir %{_includedir}/rados
2098 %{_includedir}/rados
/buffer.h
2099 %{_includedir}/rados
/buffer_fwd.h
2100 %{_includedir}/rados
/crc32c.h
2101 %{_includedir}/rados
/inline_memory.h
2102 %{_includedir}/rados
/librados.hpp
2103 %{_includedir}/rados
/librados_fwd.hpp
2104 %{_includedir}/rados
/page.h
2105 %{_includedir}/rados
/rados_types.hpp
2107 %files -n python
%{python3_pkgversion}-rados
2108 %{python3_sitearch}/rados.cpython
*.so
2109 %{python3_sitearch}/rados
-*.egg
-info
2111 %if 0%{with libradosstriper}
2112 %files -n libradosstriper1
2113 %{_libdir}/libradosstriper.so.
*
2115 %post -n libradosstriper1
-p
/sbin
/ldconfig
2117 %postun -n libradosstriper1
-p
/sbin
/ldconfig
2119 %files -n libradosstriper
-devel
2120 %dir %{_includedir}/radosstriper
2121 %{_includedir}/radosstriper
/libradosstriper.h
2122 %{_includedir}/radosstriper
/libradosstriper.hpp
2123 %{_libdir}/libradosstriper.so
2127 %{_libdir}/librbd.so.
*
2129 %{_libdir}/librbd_tp.so.
*
2132 %post -n librbd1
-p
/sbin
/ldconfig
2134 %postun -n librbd1
-p
/sbin
/ldconfig
2136 %files -n librbd
-devel
2137 %dir %{_includedir}/rbd
2138 %{_includedir}/rbd
/librbd.h
2139 %{_includedir}/rbd
/librbd.hpp
2140 %{_includedir}/rbd
/features.h
2141 %{_libdir}/librbd.so
2143 %{_libdir}/librbd_tp.so
2147 %{_libdir}/librgw.so.
*
2149 %{_libdir}/librgw_op_tp.so.
*
2150 %{_libdir}/librgw_rados_tp.so.
*
2153 %post -n librgw2
-p
/sbin
/ldconfig
2155 %postun -n librgw2
-p
/sbin
/ldconfig
2157 %files -n librgw
-devel
2158 %dir %{_includedir}/rados
2159 %{_includedir}/rados
/librgw.h
2160 %{_includedir}/rados
/rgw_file.h
2161 %{_libdir}/librgw.so
2163 %{_libdir}/librgw_op_tp.so
2164 %{_libdir}/librgw_rados_tp.so
2167 %files -n python
%{python3_pkgversion}-rgw
2168 %{python3_sitearch}/rgw.cpython
*.so
2169 %{python3_sitearch}/rgw
-*.egg
-info
2171 %files -n python
%{python3_pkgversion}-rbd
2172 %{python3_sitearch}/rbd.cpython
*.so
2173 %{python3_sitearch}/rbd
-*.egg
-info
2175 %files -n libcephfs2
2176 %{_libdir}/libcephfs.so.
*
2177 %dir %{_sysconfdir}/ceph
2179 %post -n libcephfs2
-p
/sbin
/ldconfig
2181 %postun -n libcephfs2
-p
/sbin
/ldconfig
2183 %files -n libcephfs
-devel
2184 %dir %{_includedir}/cephfs
2185 %{_includedir}/cephfs
/libcephfs.h
2186 %{_includedir}/cephfs
/ceph_ll_client.h
2187 %{_libdir}/libcephfs.so
2189 %files -n python
%{python3_pkgversion}-cephfs
2190 %{python3_sitearch}/cephfs.cpython
*.so
2191 %{python3_sitearch}/cephfs
-*.egg
-info
2192 %{python3_sitelib}/ceph_volume_client.py
2193 %{python3_sitelib}/__pycache__
/ceph_volume_client.cpython
*.py
*
2195 %files -n python
%{python3_pkgversion}-ceph
-argparse
2196 %{python3_sitelib}/ceph_argparse.py
2197 %{python3_sitelib}/__pycache__
/ceph_argparse.cpython
*.py
*
2198 %{python3_sitelib}/ceph_daemon.py
2199 %{python3_sitelib}/__pycache__
/ceph_daemon.cpython
*.py
*
2201 %files -n python
%{python3_pkgversion}-ceph
-common
2202 %{python3_sitelib}/ceph
2203 %{python3_sitelib}/ceph
-*.egg
-info
2205 %if 0%{with cephfs_shell}
2206 %files -n cephfs
-shell
2207 %{python3_sitelib}/cephfs_shell
-*.egg
-info
2208 %{_bindir}/cephfs
-shell
2211 %if 0%{with ceph_test_package}
2213 %{_bindir}/ceph
-client
-debug
2214 %{_bindir}/ceph_bench_log
2215 %{_bindir}/ceph_kvstorebench
2216 %{_bindir}/ceph_multi_stress_watch
2217 %{_bindir}/ceph_erasure_code
2218 %{_bindir}/ceph_erasure_code_benchmark
2219 %{_bindir}/ceph_omapbench
2220 %{_bindir}/ceph_objectstore_bench
2221 %{_bindir}/ceph_perf_objectstore
2222 %{_bindir}/ceph_perf_local
2223 %{_bindir}/ceph_perf_msgr_client
2224 %{_bindir}/ceph_perf_msgr_server
2225 %{_bindir}/ceph_psim
2226 %{_bindir}/ceph_radosacl
2227 %{_bindir}/ceph_rgw_jsonparser
2228 %{_bindir}/ceph_rgw_multiparser
2229 %{_bindir}/ceph_scratchtool
2230 %{_bindir}/ceph_scratchtoolpp
2231 %{_bindir}/ceph_test_
*
2232 %{_bindir}/ceph
-coverage
2233 %{_bindir}/ceph
-debugpack
2234 %{_bindir}/ceph
-dedup
-tool
2235 %{_mandir}/man8
/ceph
-debugpack
.8*
2236 %dir %{_libdir}/ceph
2237 %{_libdir}/ceph
/ceph
-monstore
-update
-crush.sh
2240 %if 0%{with cephfs_java}
2241 %files -n libcephfs_jni1
2242 %{_libdir}/libcephfs_jni.so.
*
2244 %post -n libcephfs_jni1
-p
/sbin
/ldconfig
2246 %postun -n libcephfs_jni1
-p
/sbin
/ldconfig
2248 %files -n libcephfs_jni
-devel
2249 %{_libdir}/libcephfs_jni.so
2251 %files -n cephfs
-java
2252 %{_javadir}/libcephfs.jar
2253 %{_javadir}/libcephfs
-test.jar
2256 %files -n rados
-objclass
-devel
2257 %dir %{_includedir}/rados
2258 %{_includedir}/rados
/objclass.h
2260 %if 0%{with selinux}
2262 %attr(0600,root
,root
) %{_datadir}/selinux
/packages
/ceph.pp
2263 %{_datadir}/selinux
/devel
/include
/contrib
/ceph.
if
2264 %{_mandir}/man8
/ceph_selinux
.8*
2267 # backup file_contexts before update
2268 .
/etc
/selinux
/config
2269 FILE_CONTEXT
=/etc
/selinux
/$
{SELINUXTYPE
}/contexts
/files
/file_contexts
2270 cp $
{FILE_CONTEXT
} $
{FILE_CONTEXT
}.pre
2272 # Install the policy
2273 /usr
/sbin
/semodule
-i
%{_datadir}/selinux
/packages
/ceph.pp
2275 # Load the policy if SELinux is enabled
2276 if ! /usr
/sbin
/selinuxenabled
; then
2277 # Do not relabel if selinux is not enabled
2281 if diff $
{FILE_CONTEXT
} $
{FILE_CONTEXT
}.pre
> /dev
/null
2>&1; then
2282 # Do not relabel if file contexts did not change
2286 # Check whether the daemons are running
2287 /usr
/bin
/systemctl status ceph.target
> /dev
/null
2>&1
2290 # Stop the daemons if they were running
2291 if test $STATUS
-eq
0; then
2292 /usr
/bin
/systemctl stop ceph.target
> /dev
/null
2>&1
2295 # Relabel the files fix for first package install
2296 /usr
/sbin
/fixfiles
-C $
{FILE_CONTEXT
}.pre restore
2> /dev
/null
2298 rm -f $
{FILE_CONTEXT
}.pre
2299 # The fixfiles command won't fix label for /var/run/ceph
2300 /usr
/sbin
/restorecon
-R
/var
/run
/ceph
> /dev
/null
2>&1
2302 # Start the daemons iff they were running before
2303 if test $STATUS
-eq
0; then
2304 /usr
/bin
/systemctl start ceph.target
> /dev
/null
2>&1 ||
:
2309 if [ $
1 -eq
0 ]; then
2310 # backup file_contexts before update
2311 .
/etc
/selinux
/config
2312 FILE_CONTEXT
=/etc
/selinux
/$
{SELINUXTYPE
}/contexts
/files
/file_contexts
2313 cp $
{FILE_CONTEXT
} $
{FILE_CONTEXT
}.pre
2316 /usr
/sbin
/semodule
-n
-r ceph
> /dev
/null
2>&1
2318 # Reload the policy if SELinux is enabled
2319 if ! /usr
/sbin
/selinuxenabled
; then
2320 # Do not relabel if SELinux is not enabled
2324 # Check whether the daemons are running
2325 /usr
/bin
/systemctl status ceph.target
> /dev
/null
2>&1
2328 # Stop the daemons if they were running
2329 if test $STATUS
-eq
0; then
2330 /usr
/bin
/systemctl stop ceph.target
> /dev
/null
2>&1
2333 /usr
/sbin
/fixfiles
-C $
{FILE_CONTEXT
}.pre restore
2> /dev
/null
2334 rm -f $
{FILE_CONTEXT
}.pre
2335 # The fixfiles command won't fix label for /var/run/ceph
2336 /usr
/sbin
/restorecon
-R
/var
/run
/ceph
> /dev
/null
2>&1
2338 # Start the daemons if they were running before
2339 if test $STATUS
-eq
0; then
2340 /usr
/bin
/systemctl start ceph.target
> /dev
/null
2>&1 ||
:
2346 %files grafana
-dashboards
2347 %if 0%{?suse_version}
2348 %attr(0755,root
,root
) %dir %{_sysconfdir}/grafana
2349 %attr(0755,root
,root
) %dir %{_sysconfdir}/grafana
/dashboards
2351 %attr(0755,root
,root
) %dir %{_sysconfdir}/grafana
/dashboards
/ceph
-dashboard
2352 %config %{_sysconfdir}/grafana
/dashboards
/ceph
-dashboard
/*
2353 %doc monitoring
/grafana
/dashboards
/README
2354 %doc monitoring
/grafana
/README.md
2356 %files prometheus
-alerts
2357 %if 0%{?suse_version}
2358 %attr(0755,root
,root
) %dir %{_sysconfdir}/prometheus
2360 %attr(0755,root
,root
) %dir %{_sysconfdir}/prometheus
/ceph
2361 %config %{_sysconfdir}/prometheus
/ceph
/ceph_default_alerts.yml