Skip to content

Commit a65ca9f

Browse files
doc: add subsections on custom share and custom global options
Document the options, the risk of using it, and the "magic key-value" pair needed to enable it. Signed-off-by: John Mulligan <[email protected]>
1 parent 32ba9b7 commit a65ca9f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

doc/mgr/smb.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,21 @@ custom_dns
357357
placement
358358
Optional. A Ceph Orchestration :ref:`placement specifier
359359
<orchestrator-cli-placement-spec>`. Defaults to one host if not provided
360+
custom_smb_share_options
361+
Optional mapping. Specify key-value pairs that will be directly added to
362+
the global ``smb.conf`` options (or equivalent) of a Samba server. Do
363+
*not* use this option unless you are prepared to debug the Samba instances
364+
yourself.
365+
366+
This option is meant for developers, feature investigators, and other
367+
advanced users to take more direct control of a share's options without
368+
needing to make changes to the Ceph codebase. Entries in this map should
369+
match parameters in ``smb.conf`` and their values. A special key
370+
``_allow_customization`` must appear somewhere in the mapping with the
371+
value of ``i-take-responsibility-for-all-samba-configuration-errors`` as an
372+
indicator that the user is aware that using this option can easily break
373+
things in ways that the Ceph team can not help with. This special key will
374+
automatically be removed from the list of options passed to Samba.
360375

361376

362377
.. _join-source-fields:
@@ -465,6 +480,20 @@ cephfs
465480
provider
466481
Optional. One of ``samba-vfs`` or ``kcephfs`` (``kcephfs`` is not yet
467482
supported) . Selects how CephFS storage should be provided to the share
483+
custom_smb_share_options
484+
Optional mapping. Specify key-value pairs that will be directly added to
485+
the ``smb.conf`` (or equivalent) of a Samba server. Do *not* use this
486+
option unless you are prepared to debug the Samba instances yourself.
487+
488+
This option is meant for developers, feature investigators, and other
489+
advanced users to take more direct control of a share's options without
490+
needing to make changes to the Ceph codebase. Entries in this map should
491+
match parameters in ``smb.conf`` and their values. A special key
492+
``_allow_customization`` must appear somewhere in the mapping with the
493+
value of ``i-take-responsibility-for-all-samba-configuration-errors`` as an
494+
indicator that the user is aware that using this option can easily break
495+
things in ways that the Ceph team can not help with. This special key will
496+
automatically be removed from the list of options passed to Samba.
468497

469498
The following is an example of a share:
470499

0 commit comments

Comments
 (0)