]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common/deployment: add new tunables param to smb service spec
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 25 Feb 2026 00:20:22 +0000 (19:20 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 27 Feb 2026 15:21:25 +0000 (10:21 -0500)
The tunables parameter will serve as a general configuration namespace
for small configuration adjustments that don't deserve their own full
blown config sections.
Keys should be namespaced by "topic" in order to avoid future conflicts.
Initially, this will be used for passing the ctdb debug level.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/deployment/service_spec.py

index e0400e4b0b3de25470bc37ba041150de7f317dae..ab96ea4e2819d2691ec4cf5092b2f1fcf14a0e89 100644 (file)
@@ -3837,6 +3837,9 @@ class SMBSpec(ServiceSpec):
         # typically external to the current cluster that the smb services
         # may be permitted to connect to
         ceph_cluster_configs: Optional[List[SMBExternalCephCluster]] = None,
+        # tunables - fine grained options/overrides to be used when deploying
+        # smb services
+        tunables: Optional[Dict[str, str]] = None,
         # --- general tweaks ---
         extra_container_args: Optional[GeneralArgList] = None,
         extra_entrypoint_args: Optional[GeneralArgList] = None,
@@ -3877,6 +3880,7 @@ class SMBSpec(ServiceSpec):
         self.ceph_cluster_configs = SMBExternalCephCluster.convert_list(
             ceph_cluster_configs
         )
+        self.tunables = tunables or {}
         self.validate()
 
     def validate(self) -> None: