summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/CMakeLists.txt
blob: e8c06c9e2e9e848e7e7b0e6886289031b50f2dd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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)