2019-02-27 12:49:47 +00:00
|
|
|
Hello World Module
|
|
|
|
==================
|
2017-12-13 15:17:57 +00:00
|
|
|
|
|
|
|
This is a simple module skeleton for documentation purposes.
|
|
|
|
|
|
|
|
Enabling
|
|
|
|
--------
|
|
|
|
|
|
|
|
The *hello* module is enabled with::
|
|
|
|
|
|
|
|
ceph mgr module enable hello
|
|
|
|
|
|
|
|
To check that it is enabled, run::
|
|
|
|
|
|
|
|
ceph mgr module ls
|
|
|
|
|
|
|
|
After editing the module file (found in ``src/pybind/mgr/hello/module.py``), you can see changes by running::
|
|
|
|
|
|
|
|
ceph mgr module disable hello
|
|
|
|
ceph mgr module enable hello
|
|
|
|
|
|
|
|
or::
|
|
|
|
|
|
|
|
init-ceph restart mgr
|
|
|
|
|
|
|
|
To execute the module, run::
|
|
|
|
|
|
|
|
ceph hello
|
|
|
|
|
|
|
|
The log is found at::
|
|
|
|
|
|
|
|
build/out/mgr.x.log
|
|
|
|
|
|
|
|
|
|
|
|
Documenting
|
|
|
|
-----------
|
|
|
|
|
2019-02-27 12:49:47 +00:00
|
|
|
After adding a new mgr module, be sure to add its documentation to ``doc/mgr/module_name.rst``.
|
|
|
|
Also, add a link to your new module into ``doc/mgr/index.rst``.
|