]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: add fetch_configs function for reading configuration items from ctx
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 11 May 2023 14:30:51 +0000 (10:30 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:13 +0000 (13:35 -0400)
commit580f120192710f6d71fbf622bd2a45197a9a4f90
tree46598f75ca5d0dde79d646993ae3d78e47717cce
parent9fe9629e80b4aed2af6f08ef192a2d6ae89adaf5
cephadm: add fetch_configs function for reading configuration items from ctx

The CephadmContext holds much of cephadm's state, including values
from cli options and (soon) configuration file input. Add a
`fetch_configs` function that reads processed configuration items from `config_blobs`
(a dict mapping config name to arbitrary configuration content) or
falls back to using the `get_parm` function on `ctx.config_json`.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py