From 5ced5f37d29ee019a51e8c903c8a334406601c8c Mon Sep 17 00:00:00 2001 From: Aashish Sharma Date: Fri, 29 Jul 2022 12:35:47 +0530 Subject: [PATCH] mgr/dashboard: add flag to automatically deploy loki/promtail service at bootstrap Fixes: https://tracker.ceph.com/issues/56964 Signed-off-by: Aashish Sharma --- src/cephadm/cephadm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 894cf9b8dfe05..4a4bea235b298 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -5260,7 +5260,7 @@ def prepare_ssh( logger.info('Deploying %s service with default placement...' % t) cli(['orch', 'apply', t]) - if not ctx.skip_centralized_logging: + if ctx.with_centralized_logging: for t in ['loki', 'promtail']: logger.info('Deploying %s service with default placement...' % t) cli(['orch', 'apply', t]) @@ -9461,9 +9461,9 @@ def _get_parser(): action='store_true', help='Do not automatically provision monitoring stack (prometheus, grafana, alertmanager, node-exporter)') parser_bootstrap.add_argument( - '--skip-centralized-logging', + '--with-centralized-logging', action='store_true', - help='Do not automatically provision centralized logging (promtail, loki)') + help='Automatically provision centralized logging (promtail, loki)') parser_bootstrap.add_argument( '--apply-spec', help='Apply cluster spec after bootstrap (copy ssh key, add hosts and apply services)') -- 2.39.5