From: John Mulligan Date: Wed, 13 Aug 2025 15:06:35 +0000 (-0400) Subject: python-common: add a new smb sub package X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b99f0296ff07a38e2a87133938017fc30f20a905;p=ceph.git python-common: add a new smb sub package Add a new smb sub package for smb related things that are meant to be shared throughout the Ceph python code related to smb and the smb management stack. Signed-off-by: John Mulligan --- diff --git a/src/python-common/ceph/smb/__init__.py b/src/python-common/ceph/smb/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/src/python-common/ceph/smb/constants.py b/src/python-common/ceph/smb/constants.py new file mode 100644 index 000000000000..bc2961de49a3 --- /dev/null +++ b/src/python-common/ceph/smb/constants.py @@ -0,0 +1,49 @@ +# Shared constant values that apply across all ceph components that manage +# smb services (mgr module, cephadm mgr module, cephadm binary, etc) + + +# Generic/common names +SMB = 'smb' +CTDB = 'ctdb' + + +# Feature names +CEPHFS_PROXY = 'cephfs-proxy' +CLUSTERED = 'clustered' +DOMAIN = 'domain' +REMOTE_CONTROL = 'remote-control' +SMBMETRICS = 'smbmetrics' + + +# Features are optional components that can be deployed in a suite of smb +# related containers. It may run as a separate sidecar or side-effect the +# configuration of another component. +FEATURES = { + CEPHFS_PROXY, + CLUSTERED, + DOMAIN, + REMOTE_CONTROL, +} + +# Services are components that listen on a "public" network port, to expose +# network services to remote clients. +SERVICES = { + CTDB, + REMOTE_CONTROL, + SMB, + SMBMETRICS, +} + + +# Default port values +SMB_PORT = 445 +SMBMETRICS_PORT = 9922 +CTDB_PORT = 4379 +REMOTE_CONTROL_PORT = 54445 + +DEFAULT_PORTS = { + SMB: SMB_PORT, + SMBMETRICS: SMBMETRICS_PORT, + CTDB: CTDB_PORT, + REMOTE_CONTROL: REMOTE_CONTROL_PORT, +}