From: John Mulligan Date: Tue, 9 Apr 2024 21:41:39 +0000 (-0400) Subject: python-common: add a user_sources field to smb service spec X-Git-Tag: v20.0.0~2047^2~35 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7b672948fb4fa3718e5dc1fb7c0212cfd29167c;p=ceph.git python-common: add a user_sources field to smb service spec 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 --- diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index cea5ae4e2c49..9d1212d4609b 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -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()