Skip to content

Commit fa4f9c1

Browse files
doc/mgr/smb: document the new set of smb mgr module options
Document the new --results and --password-filter{,-out} options. These options are added for show and apply but also for cluster {create,rm} as these take and emit these values too. Signed-off-by: John Mulligan <[email protected]>
1 parent 8af7aad commit fa4f9c1

File tree

1 file changed

+82
-5
lines changed

1 file changed

+82
-5
lines changed

doc/mgr/smb.rst

Lines changed: 82 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Create Cluster
5555

5656
.. code:: bash
5757
58-
$ ceph smb cluster create <cluster_id> {user|active-directory} [--domain-realm=<domain_realm>] [--domain-join-user-pass=<domain_join_user_pass>] [--define-user-pass=<define_user_pass>] [--custom-dns=<custom_dns>] [--placement=<placement>] [--clustering=<clustering>]
58+
$ ceph smb cluster create <cluster_id> {user|active-directory} [--domain-realm=<domain_realm>] [--domain-join-user-pass=<domain_join_user_pass>] [--define-user-pass=<define_user_pass>] [--custom-dns=<custom_dns>] [--placement=<placement>] [--clustering=<clustering>] [--password-filter=<password_filter>] [--password-filter-out=<password_filter_out>]
5959
6060
Create a new logical cluster, identified by the cluster id value. The cluster
6161
create command must specify the authentication mode the cluster will use. This
@@ -101,16 +101,40 @@ public_addrs
101101
Supported only when using Samba's clustering. Assign "virtual" IP
102102
addresses that will be managed by the clustering subsystem and may automatically
103103
move between nodes running Samba containers.
104+
password_filter
105+
One of ``none`` or ``base64``. If the filter is ``none`` the password
106+
values on the command line are assumed to be plain text. If the filter is
107+
``base64`` the password values are assumed to be obscured with
108+
base64 encoding the string. If ``--password-filter-out`` is not specified
109+
this filter will also be applied to the output.
110+
password_filter_out
111+
One of ``none``, ``base64``, or ``hidden``. If the filter is ``none`` the
112+
password fields in the output are emitted as plain text. If the filter is
113+
``base64`` password fields will be obscured by base64 encoding the
114+
string. If the filter is ``hidden`` the password values will be replaced
115+
by a invalid generic replacement string containing only asterisks.
104116

105117
Remove Cluster
106118
++++++++++++++
107119

108120
.. code:: bash
109121
110-
$ ceph smb cluster rm <cluster_id>
122+
$ ceph smb cluster rm <cluster_id> [--password-filter=<password_filter>]
111123
112124
Remove a logical SMB cluster from the Ceph cluster.
113125

126+
Options:
127+
128+
cluster_id
129+
A ``cluster_id`` value identifying a cluster resource.
130+
password_filter
131+
One of ``none``, ``base64``, or ``hidden``. If the filter is ``none`` the
132+
password fields in the output are emitted as plain text. If the filter is
133+
``base64`` password fields will be obscured by base64 encoding the
134+
string. If the filter is ``hidden`` the password values will be replaced
135+
by a invalid generic replacement string containing only asterisks.
136+
137+
114138
List Clusters
115139
++++++++++++++
116140

@@ -190,15 +214,68 @@ command, for example:
190214
191215
$ ceph smb apply -i /path/to/resources.yaml
192216
217+
In addition to the resource specification the ``apply`` sub-command accepts
218+
options that control how the input and output of the command behave:
219+
220+
.. code:: bash
221+
222+
$ ceph smb apply [--format=<format>] [--password-filter=<password_filter>] [--password-filter-out=<password_filter_out>] -i <input>
223+
224+
Options:
225+
226+
format
227+
One of ``json`` (the default) or ``yaml``. Output format can be
228+
selected independent of the input format.
229+
password_filter
230+
One of ``none`` or ``base64``. If the filter is ``none`` the password
231+
fields in the input are assumed to be plain text. If the filter is
232+
``base64`` the password fields are assumed to be obscured with
233+
base64 encoding the string. If ``--password-filter-out`` is not specified
234+
this filter will also be applied to the output.
235+
password_filter_out
236+
One of ``none``, ``base64``, or ``hidden``. If the filter is ``none`` the
237+
password fields in the output are emitted as plain text. If the filter is
238+
``base64`` password fields will be obscured by base64 encoding the
239+
string. If the filter is ``hidden`` the password values will be replaced
240+
by a invalid generic replacement string containing only asterisks.
241+
input
242+
A file name or ``-`` to use stdin.
243+
244+
193245
Resources that have already been applied to the Ceph cluster configuration can
194246
be viewed using the ``ceph smb show`` command. For example:
195247

196248
.. code:: bash
197249
198-
$ ceph smb show [<resource_name>...]
250+
$ ceph smb show ceph.smb.cluster.cluster1
251+
252+
The ``show`` command can show all resources, resources of a given type, or specific
253+
resource items. Options can be provided that control the output of the command.
254+
255+
.. code:: bash
256+
257+
$ ceph smb show [resource_name...] [--format=<format>] [--results=<results>] [--password-filter=<password_filter>]
258+
259+
Options:
199260

200-
The ``show`` command can show all resources of a given type or specific
201-
resources by id. ``resource_name`` arguments can take the following forms:
261+
resource_name
262+
One or more strings specifying a resource or resource type. See description below.
263+
format
264+
One of ``json`` (the default) or ``yaml``.
265+
results
266+
One of ``collapsed`` (the default) or ``full``. When set to ``collapsed``
267+
the output of the command will show only the resource JSON/YAML of
268+
a single item if a single item is found. When set to ``full`` even if a
269+
single item is found the output will always include a wrapper object like
270+
(in pseudo-JSON): ``{"resources": [...Resource objects...]}``.
271+
password_filter
272+
One of ``none``, ``base64``, or ``hidden``. If the filter is ``none`` the
273+
password fields in the output are emitted as plain text. If the filter is
274+
``base64`` password fields will be obscured by base64 encoding the
275+
string. If the filter is ``hidden`` the password values will be replaced
276+
by a invalid generic replacement string containing only asterisks.
277+
278+
``resource_name`` arguments can take the following forms:
202279

203280
- ``ceph.smb.cluster``: show all cluster resources
204281
- ``ceph.smb.cluster.<cluster_id>``: show specific cluster with given cluster id

0 commit comments

Comments
 (0)