From: John Mulligan Date: Tue, 28 Jul 2026 01:12:18 +0000 (-0400) Subject: cephadm: update smb env to specify writable shared passwd/group files X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8026e6941cc56ccf20e13a01afc97dca15f6afc8;p=ceph.git cephadm: update smb env to specify writable shared passwd/group files Update environment for smb containers to specify arguments that sambacc will use to configure the containers for a split configuration for users (passwd) and group files. The writable copy will be store in the samba state dir (/var/lib/samba in the container) and be shared across the primary and sidecar containers so that configwatch can pull new users and groups lists from ceph and apply them live. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadmlib/daemons/smb.py b/src/cephadm/cephadmlib/daemons/smb.py index 5a49f1300c0d..df4d4f7e9b86 100644 --- a/src/cephadm/cephadmlib/daemons/smb.py +++ b/src/cephadm/cephadmlib/daemons/smb.py @@ -327,6 +327,12 @@ class SambaContainerCommon(ContainerCommon): # variable. This can be dropped once sambacc no longer needs it, # possibly after the next sambacc release. environ['SAMBACC_CTDB'] = 'ctdb-is-experimental' + environ[ + 'SAMBACC_PASSWD_LOCATION' + ] = '/etc/passwd:/var/lib/samba/passwd:/lib/passwd' + environ[ + 'SAMBACC_GROUP_LOCATION' + ] = '/etc/group:/var/lib/samba/group:/lib/group' if self.cfg.ceph_config_entity: environ['SAMBACC_CEPH_ID'] = f'name={self.cfg.ceph_config_entity}' if self.cfg.rank >= 0: