fcfbfe4aba1a94bca1c8a73951147399f81fe2d3
[pti/rtp.git] / meta-stx / recipes-core / stx-utilities / ceph / ceph-manager.inc
1 #
2 ## Copyright (C) 2019 Wind River Systems, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 PACKAGES += " ceph-manager"
17
18 RDEPENDS_ceph-manager += " sysinv"
19 DESCRIPTION_ceph-manager = " \
20 Handle Ceph API calls and provide status updates via alarms. \
21 Handle sysinv RPC calls for long running Ceph API operations: \
22         - cache tiering enable \
23         - cache tiering disable \
24 "
25
26 do_configure_append() {
27         cd ${S}/ceph/ceph-manager/ceph-manager
28         distutils_do_configure
29 }
30 do_compile_append() {
31         cd ${S}/ceph/ceph-manager/ceph-manager
32         distutils_do_compile
33 }
34
35 do_install_append() {
36         cd ${S}/ceph/ceph-manager/ceph-manager
37         distutils_do_install
38
39         install -d -m0755 ${D}/${bindir}
40         install -d -m0755 ${D}/${sysconfdir}/init.d
41         install -d -m0755 ${D}/${sysconfdir}/logrotate.d
42         install -d -m0755 ${D}/${systemd_system_unitdir}
43
44         install -p -m0700 ${S}/ceph/ceph-manager/scripts/bin/ceph-manager ${D}/${sysconfdir}/init.d
45         install -p -m0700 ${S}/ceph/ceph-manager/scripts/bin/ceph-manager ${D}/${bindir}
46         install -p -m0700 ${S}/ceph/ceph-manager/files/ceph-manager.logrotate ${D}/${sysconfdir}/logrotate.d
47         install -p -m0700 ${S}/ceph/ceph-manager/files/ceph-manager.service ${D}/${systemd_system_unitdir}
48 }
49
50 FILES_ceph-manager = "  \
51         ${bindir}/ceph-manager \
52         ${sysconfdir}/init.d/ceph-manager \
53         ${sysconfdir}/logrotate.d/ceph-manager.logrotate \
54         ${systemd_system_unitdir}/ceph-manager.service \
55         ${PYTHON_SITEPACKAGES_DIR}/ceph_manager \
56         ${PYTHON_SITEPACKAGES_DIR}/ceph_manager-1.0.0-py2.7.egg-info \
57         "