]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: add flag to automatically deploy loki/promtail service at bootstrap 47346/head
authorAashish Sharma <aasharma@redhat.com>
Fri, 29 Jul 2022 07:05:47 +0000 (12:35 +0530)
committerAashish Sharma <aasharma@redhat.com>
Mon, 8 Aug 2022 05:29:13 +0000 (10:59 +0530)
Fixes: https://tracker.ceph.com/issues/56964
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
src/cephadm/cephadm

index 894cf9b8dfe0563a3abc303d05b7682dce6da35b..4a4bea235b29817aa7627c84c9fe50979b7a06f6 100755 (executable)
@@ -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)')