From: Aashish Sharma Date: Fri, 29 Jul 2022 07:05:47 +0000 (+0530) Subject: mgr/dashboard: add flag to automatically deploy loki/promtail service at bootstrap X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fadd-centralized-logging-flag;p=ceph.git mgr/dashboard: add flag to automatically deploy loki/promtail service at bootstrap Fixes: https://tracker.ceph.com/issues/56964 Signed-off-by: Aashish Sharma --- 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)')