Skip to content

Commit b99f029

Browse files
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 <[email protected]>
1 parent 14f033f commit b99f029

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

src/python-common/ceph/smb/__init__.py

Whitespace-only changes.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Shared constant values that apply across all ceph components that manage
2+
# smb services (mgr module, cephadm mgr module, cephadm binary, etc)
3+
4+
5+
# Generic/common names
6+
SMB = 'smb'
7+
CTDB = 'ctdb'
8+
9+
10+
# Feature names
11+
CEPHFS_PROXY = 'cephfs-proxy'
12+
CLUSTERED = 'clustered'
13+
DOMAIN = 'domain'
14+
REMOTE_CONTROL = 'remote-control'
15+
SMBMETRICS = 'smbmetrics'
16+
17+
18+
# Features are optional components that can be deployed in a suite of smb
19+
# related containers. It may run as a separate sidecar or side-effect the
20+
# configuration of another component.
21+
FEATURES = {
22+
CEPHFS_PROXY,
23+
CLUSTERED,
24+
DOMAIN,
25+
REMOTE_CONTROL,
26+
}
27+
28+
# Services are components that listen on a "public" network port, to expose
29+
# network services to remote clients.
30+
SERVICES = {
31+
CTDB,
32+
REMOTE_CONTROL,
33+
SMB,
34+
SMBMETRICS,
35+
}
36+
37+
38+
# Default port values
39+
SMB_PORT = 445
40+
SMBMETRICS_PORT = 9922
41+
CTDB_PORT = 4379
42+
REMOTE_CONTROL_PORT = 54445
43+
44+
DEFAULT_PORTS = {
45+
SMB: SMB_PORT,
46+
SMBMETRICS: SMBMETRICS_PORT,
47+
CTDB: CTDB_PORT,
48+
REMOTE_CONTROL: REMOTE_CONTROL_PORT,
49+
}

0 commit comments

Comments
 (0)