From a7b672948fb4fa3718e5dc1fb7c0212cfd29167c Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 9 Apr 2024 17:41:39 -0400 Subject: [PATCH] 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 --- src/python-common/ceph/deployment/service_spec.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index cea5ae4e2c4..9d1212d4609 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() -- 2.47.3