From 2327708b07a5d7875c5974ac979b1cb25148ab84 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 30 Jun 2025 19:11:47 -0400 Subject: [PATCH] mgr/cephadm: copy tls blobs from smb service spec to smb configuration Signed-off-by: John Mulligan --- src/pybind/mgr/cephadm/services/smb.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/pybind/mgr/cephadm/services/smb.py b/src/pybind/mgr/cephadm/services/smb.py index a04b13ed611fc..83d388c34fe35 100644 --- a/src/pybind/mgr/cephadm/services/smb.py +++ b/src/pybind/mgr/cephadm/services/smb.py @@ -158,6 +158,23 @@ class SMBService(CephService): config_blobs['service_ports'] = smb_spec.service_ports() if smb_spec.bind_addrs: config_blobs['bind_networks'] = smb_spec.bind_networks() + if 'remote-control' in smb_spec.features: + files = config_blobs.setdefault('files', {}) + _add_cfg( + files, + 'remote_control.ssl.crt', + smb_spec.remote_control_ssl_cert, + ) + _add_cfg( + files, + 'remote_control.ssl.key', + smb_spec.remote_control_ssl_key, + ) + _add_cfg( + files, + 'remote_control.ca.crt', + smb_spec.remote_control_ca_cert, + ) logger.debug('smb generate_config: %r', config_blobs) self._configure_cluster_meta(smb_spec, daemon_spec) -- 2.39.5