cli: Callable, wait_for_mgr_restart: Callable
) -> None:
- cli(['config-key', 'set', 'mgr/cephadm/ssh_user', ctx.ssh_user])
-
- logger.info('Enabling cephadm module...')
- cli(['mgr', 'module', 'enable', 'cephadm'])
- wait_for_mgr_restart()
-
- logger.info('Setting orchestrator backend to cephadm...')
- cli(['orch', 'set', 'backend', 'cephadm'])
+ cli(['cephadm', 'set-user', ctx.ssh_user])
if ctx.ssh_config:
logger.info('Using provided ssh config...')
cli(['orch', 'apply', t])
+def enable_cephadm_mgr_module(
+ cli: Callable, wait_for_mgr_restart: Callable
+) -> None:
+
+ logger.info('Enabling cephadm module...')
+ cli(['mgr', 'module', 'enable', 'cephadm'])
+ wait_for_mgr_restart()
+ logger.info('Setting orchestrator backend to cephadm...')
+ cli(['orch', 'set', 'backend', 'cephadm'])
+
+
def prepare_dashboard(
ctx: CephadmContext,
uid: int, gid: int,
return False
is_available(ctx, 'mgr epoch %d' % epoch, mgr_has_latest_epoch)
+ enable_cephadm_mgr_module(cli, wait_for_mgr_restart)
+
# ssh
if not ctx.skip_ssh:
prepare_ssh(ctx, cli, wait_for_mgr_restart)