From 780809f4d7d4fe043b5341f215dd09fdd44c75a4 Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Thu, 12 Nov 2020 15:27:50 +1300 Subject: [PATCH] cephadm: add cephadm-exporter to deployment cmds Add cephadm-exporter to the daemon add and apply subcommands Signed-off-by: Paul Cuzner --- src/pybind/mgr/orchestrator/module.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index ea27c762a08db..78cdb0e9271fc 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -809,7 +809,7 @@ Usage: @_cli_write_command( 'orch daemon add', - 'name=daemon_type,type=CephChoices,strings=mon|mgr|rbd-mirror|crash|alertmanager|grafana|node-exporter|prometheus,req=false ' + 'name=daemon_type,type=CephChoices,strings=mon|mgr|rbd-mirror|crash|alertmanager|grafana|node-exporter|prometheus|cephadm-exporter,req=false ' 'name=placement,type=CephString,req=false', 'Add daemon(s)') def _daemon_add_misc(self, @@ -854,6 +854,8 @@ Usage: completion = self.add_nfs(spec) elif daemon_type == 'iscsi': completion = self.add_iscsi(spec) + elif daemon_type == 'cephadm-exporter': + completion = self.add_cephadm_exporter(spec) else: raise OrchestratorValidationError(f'unknown daemon type `{daemon_type}`') @@ -1048,7 +1050,7 @@ Usage: @_cli_write_command( 'orch apply', - 'name=service_type,type=CephChoices,strings=mon|mgr|rbd-mirror|crash|alertmanager|grafana|node-exporter|prometheus,req=false ' + 'name=service_type,type=CephChoices,strings=mon|mgr|rbd-mirror|crash|alertmanager|grafana|node-exporter|prometheus|cephadm-exporter,req=false ' 'name=placement,type=CephString,req=false ' 'name=dry_run,type=CephBool,req=false ' 'name=format,type=CephChoices,strings=plain|json|json-pretty|yaml,req=false ' -- 2.39.5