]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
python-common: add a user_sources field to smb service spec
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 9 Apr 2024 21:41:39 +0000 (17:41 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 25 Apr 2024 23:10:38 +0000 (19:10 -0400)
We had a mechanism for passing primary configs and join sources to the
smb service but need a way to pass configs containing user (and group)
definitions for non-AD scenarios.

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

index cea5ae4e2c49fb42983db5a48593f5d09f6fd826..9d1212d4609b239c07fbf0aac1c343d795c80bbf 100644 (file)
@@ -2546,6 +2546,12 @@ class SMBSpec(ServiceSpec):
         # config-key store uri (example:
         # `rados:mon-config-key:smb/config/mycluster/join1.json`).
         join_sources: Optional[List[str]] = None,
+        # user_sources - a list of pseudo-uris that resolve to a (JSON) blob
+        # containing data the samba-container can use to create users (and/or
+        # groups). A ceph based samba container may typically use a rados uri
+        # or a mon config-key store uri (example:
+        # `rados:mon-config-key:smb/config/mycluster/join1.json`).
+        user_sources: Optional[List[str]] = None,
         # custom_dns -  a list of IP addresses that will be set up as custom
         # dns servers for the samba container.
         custom_dns: Optional[List[str]] = None,
@@ -2577,6 +2583,7 @@ class SMBSpec(ServiceSpec):
         self.features = features or []
         self.config_uri = config_uri
         self.join_sources = join_sources or []
+        self.user_sources = user_sources or []
         self.custom_dns = custom_dns or []
         self.include_ceph_users = include_ceph_users or []
         self.validate()