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 <jmulligan@redhat.com>
# 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: