From: Guillaume Abrioux Date: Mon, 23 Oct 2023 13:42:09 +0000 (+0000) Subject: cephadm: add new option to CLI X-Git-Tag: v19.3.0~102^2~39 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f5fc77ec7d3500346518f1d011a899e10ca83167;p=ceph.git cephadm: add new option to CLI this adds the `--deploy-cephadm-agent` option to the cephadm CLI's bootstrap subcommand. Signed-off-by: Guillaume Abrioux --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index ec0dca656115..e65e837d9f3d 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -2969,6 +2969,10 @@ def command_bootstrap(ctx): 'For more information see:\n\n' '\thttps://docs.ceph.com/en/latest/mgr/telemetry/\n') logger.info('Bootstrap complete.') + + if getattr(ctx, 'deploy_cephadm_agent', None): + cli(['config', 'set', 'mgr', 'mgr/cephadm/use_agent', 'true']) + return ctx.error_code ################################## @@ -5328,6 +5332,10 @@ def _get_parser(): '--log-to-file', action='store_true', help='configure cluster to log to traditional log files in /var/log/ceph/$fsid') + parser_bootstrap.add_argument( + '--deploy-cephadm-agent', + action='store_true', + help='deploy the cephadm-agent') parser_deploy = subparsers.add_parser( 'deploy', help='deploy a daemon')