]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: add deploy-from command
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 11 May 2023 15:05:07 +0000 (11:05 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:14 +0000 (13:35 -0400)
commite2c5787a59ba2d26c7da9c9ae65e5fbd7e6cd2ad
tree96389d373bb6079191f110ea73223ca77af4fb22
parent6db83f1a0805f8becdc6c332141a93099ff60fa1
cephadm: add deploy-from command

Add the `deploy-from` command. This command is like `deploy` in
functionality but instead of sourcing input from a mixture of various
CLI arguments, CLI arguments that take JSON strings, and JSON data
provided on stdin - this command aims to take configuration from a
single unified JSON object provided on the commands stdin.

This change strives to be as reasonably backwards compatible with
`deploy` as possible and this leads to some awkward hoop-jumping,
including: needing to nest CLI arguments inside the JSON, because
that is what the manager constructs; duplicate sources of the fsid
(CLI and JSON); the strange behavior of CephadmContext when setting
values; and a few others I'm probably forgetting.

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