]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: pass bind_networks with other smb config blobs
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 17 Jun 2025 19:09:07 +0000 (15:09 -0400)
committerAdam King <adking@redhat.com>
Fri, 25 Jul 2025 17:55:28 +0000 (13:55 -0400)
Tell the cephadm binary deploying an smb service about the networks
this smb service will be binding to.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 414300201aa726e9ce88c7219ddb4dfd0daf8f62)

src/pybind/mgr/cephadm/services/smb.py

index edb499038911af235f1c61d631d3563818684060..e8d0388b10a38a6d7e8e7b35a9a659a8dfb34126 100644 (file)
@@ -157,6 +157,8 @@ class SMBService(CephService):
                 '', force_ceph_image=True
             )
         config_blobs['service_ports'] = smb_spec.service_ports()
+        if smb_spec.bind_addrs:
+            config_blobs['bind_networks'] = smb_spec.bind_networks()
 
         logger.debug('smb generate_config: %r', config_blobs)
         self._configure_cluster_meta(smb_spec, daemon_spec)