]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: add a daemon identity method for getting sidecar script path
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 17 Nov 2023 19:33:11 +0000 (14:33 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Jan 2024 14:30:20 +0000 (09:30 -0500)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadmlib/daemon_identity.py

index aa47f2815d4959c93791190eefa01ad23a8a244c..f13473c2a23992f98483d3f67de26e0f0e8bf79b 100644 (file)
@@ -153,6 +153,10 @@ class DaemonSubIdentity(DaemonIdentity):
             category='sidecar', suffix=self.subcomponent, extension='service'
         )
 
+    def sidecar_script(self, base_data_dir: Union[str, os.PathLike]) -> str:
+        sname = f'sidecar-{ self.subcomponent }.run'
+        return str(pathlib.Path(self.data_dir(base_data_dir)) / sname)
+
     @property
     def legacy_container_name(self) -> str:
         raise ValueError(