]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: document that the kcephfs mount helper will search keyring files for secrets 29817/head
authorJeff Layton <jlayton@redhat.com>
Mon, 19 Aug 2019 11:10:30 +0000 (07:10 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 13 Sep 2019 12:15:55 +0000 (08:15 -0400)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
doc/cephfs/fstab.rst
doc/cephfs/kernel.rst

index a5bb14d0623e12e8cd8d1ec51d3c11d6a8fc199e..6274d0a96957baee6f82b36fc4d4673f85f889fe 100644 (file)
@@ -15,10 +15,11 @@ following to ``/etc/fstab``::
 
 For example:: 
 
-       10.10.10.10:6789:/     /mnt/ceph    ceph    name=admin,secretfile=/etc/ceph/secret.key,noatime,_netdev    0       2
+       10.10.10.10:6789:/     /mnt/ceph    ceph    name=admin,noatime,_netdev    0       2
        
-.. important:: The ``name`` and ``secret`` or ``secretfile`` options are 
-   mandatory when you have Ceph authentication running. 
+The default for the ``name=`` parameter is ``guest``. If the ``secret`` or
+``secretfile`` options are not specified then the mount helper will attempt to
+find a secret for the given ``name`` in one of the configured keyrings.
  
 See `User Management`_ for details.
    
index b81d6a30a9ec9d1151aff7ae9ab53b8b9bc0ae65..16702cbcab282a63a246cba1fceecce8d060431c 100644 (file)
@@ -9,8 +9,12 @@ monitor host name(s) into IP address(es) for you. For example::
        sudo mkdir /mnt/mycephfs
        sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs
 
-To mount the Ceph file system with ``cephx`` authentication enabled, you must
-specify a user name and a secret. ::
+To mount the Ceph file system with ``cephx`` authentication enabled, the kernel
+must authenticate with the cluster. The default ``name=`` option is ``guest``.
+The mount.ceph helper will automatically attempt to find a secret key in the
+keyring.
+
+The secret can also be specified manually with the ``secret=`` option. ::
 
        sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs -o name=admin,secret=AQATSKdNGBnwLhAAnNDKnH65FmVKpXZJVasUeQ==
 
@@ -18,11 +22,12 @@ The foregoing usage leaves the secret in the Bash history. A more secure
 approach reads the secret from a file. For example::
 
        sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs -o name=admin,secretfile=/etc/ceph/admin.secret
-       
+
+See `User Management`_ for details on cephx.
+
 If you have more than one file system, specify which one to mount using
+
 the ``mds_namespace`` option, e.g. ``-o mds_namespace=myfs``.
-    
-See `User Management`_ for details on cephx.
 
 To unmount the Ceph file system, you may use the ``umount`` command. For example::