summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/pybind/mgr/CMakeLists.txt
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/pybind/mgr/CMakeLists.txt')
-rw-r--r--src/pybind/mgr/CMakeLists.txt63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/pybind/mgr/CMakeLists.txt b/src/pybind/mgr/CMakeLists.txt
new file mode 100644
index 000000000..e8c06c9e2
--- /dev/null
+++ b/src/pybind/mgr/CMakeLists.txt
@@ -0,0 +1,63 @@
+set(mgr_module_install_excludes
+ PATTERN "CMakeLists.txt" EXCLUDE
+ PATTERN ".gitignore" EXCLUDE
+ PATTERN "tox.ini" EXCLUDE
+ PATTERN "requirements*.txt" EXCLUDE
+ PATTERN "constraints*.txt" EXCLUDE
+ PATTERN "tests/*" EXCLUDE)
+
+add_subdirectory(dashboard)
+
+if(WITH_MGR_ROOK_CLIENT)
+ add_subdirectory(rook)
+endif()
+if(WITH_TESTS)
+ include(AddCephTest)
+ add_tox_test(mgr ${CMAKE_CURRENT_SOURCE_DIR} TOX_ENVS py3 py37 mypy flake8 jinjalint nooptional)
+endif()
+
+# Location needs to match default setting for mgr_module_path, currently:
+# OPTION(mgr_module_path, OPT_STR, CEPH_INSTALL_DATADIR "/mgr")
+set(mgr_modules
+ alerts
+ balancer
+ cephadm
+ crash
+ # dashboard (optional)
+ devicehealth
+ diskprediction_local
+ # hello is an example for developers, not for user
+ influx
+ insights
+ iostat
+ k8sevents
+ localpool
+ mds_autoscaler
+ mirroring
+ nfs
+ orchestrator
+ osd_perf_query
+ osd_support
+ pg_autoscaler
+ progress
+ prometheus
+ rbd_support
+ restful
+ rgw
+ # rook (optional)
+ selftest
+ snap_schedule
+ stats
+ status
+ telegraf
+ telemetry
+ # tests (for testing purpose only)
+ test_orchestrator
+ volumes
+ zabbix)
+
+install(DIRECTORY ${mgr_modules}
+ DESTINATION ${CEPH_INSTALL_DATADIR}/mgr
+ ${mgr_module_install_excludes})
+install(FILES mgr_module.py mgr_util.py object_format.py
+ DESTINATION ${CEPH_INSTALL_DATADIR}/mgr)