]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc: add a basic client configuration document
authorJeff Layton <jlayton@redhat.com>
Mon, 25 Nov 2019 18:38:49 +0000 (13:38 -0500)
committerJeff Layton <jlayton@redhat.com>
Fri, 20 Mar 2020 15:15:37 +0000 (11:15 -0400)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
doc/cephadm/client-setup.rst [new file with mode: 0644]
doc/cephadm/index.rst

diff --git a/doc/cephadm/client-setup.rst b/doc/cephadm/client-setup.rst
new file mode 100644 (file)
index 0000000..dd0bc32
--- /dev/null
@@ -0,0 +1,36 @@
+=======================
+Basic Ceph Client Setup
+=======================
+Client machines need some basic configuration in order to interact with
+a cluster. This document describes how to configure a client machine
+for cluster interaction.
+
+.. note:: Most client machines only need the `ceph-common` package and
+          its dependencies installed. That will supply the basic `ceph`
+          and `rados` commands, as well as other commands like
+          `mount.ceph` and `rbd`.
+
+Config File Setup
+=================
+Client machines can generally get away with a smaller config file than
+a full-fledged cluster member. To generate a minimal config file, log
+into a host that is already configured as a client or running a cluster
+daemon, and then run::
+
+    ceph config generate-minimal-conf
+
+This will generate a minimal config file that will tell the client how to
+reach the Ceph Monitors. The contents of this file should typically be
+installed in `/etc/ceph/ceph.conf`.
+
+Keyring Setup
+=============
+Most Ceph clusters are run with authentication enabled, and the client will
+need keys in order to communicate with cluster machines. To generate a
+keyring file with credentials for `client.fs`, log into an extant cluster
+member and run::
+
+    ceph auth get-or-create client.fs
+
+The resulting output should be put into a keyring file, typically
+`/etc/ceph/ceph.keyring`.
index 4a0a9230fbd7885b5f6dfb042bd5f2b834c95d42..444b53aeeeeba9db12545772dbcb8d7f437aa12f 100644 (file)
@@ -28,5 +28,6 @@ versions of Ceph.
     Cephadm operations <operations>
     Cephadm monitoring <monitoring>
     Cephadm CLI <../mgr/orchestrator>
+    Client Setup <client-setup>
     DriveGroups <drivegroups>
     troubleshooting