]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm: managing ceph.conf
authorZac Dover <zac.dover@gmail.com>
Wed, 2 Sep 2020 09:19:40 +0000 (19:19 +1000)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Oct 2020 09:40:52 +0000 (11:40 +0200)
This commit repairs PR#36796, which was about
updating the configuration settings in ceph.conf
without touching the file directly.

That commit wasn't building because of a couple of
back quotes that were touching the word that followed
them. So much like the princess from The Princess and
The Pea is Sphinx. So careful must we always be.

Fixes: https://tracker.ceph.com/issues/47265
Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 29e8cbc49b3d904e2cf5d5eb2d632f49ba604052)

doc/cephadm/operations.rst
doc/rados/configuration/ceph-conf.rst

index 198286a3a3046c70b3d95be1e5c982cf731fbbaf..456f48628f3c1572ad07aa1f2bd3925a7d234c96 100644 (file)
@@ -278,19 +278,30 @@ You can disable this health warning with::
 /etc/ceph/ceph.conf
 ===================
 
-Cephadm uses a minimized ``ceph.conf`` that only contains 
+Cephadm distributes a minimized ``ceph.conf`` that only contains 
 a minimal set of information to connect to the Ceph cluster.
 
-To update the configuration settings, use::
+To update the configuration settings, instead of manually editing
+the ``ceph.conf`` file, use the config database instead::
 
   ceph config set ...
 
+See :ref:`ceph-conf-database` for details. 
 
-To set up an initial configuration before calling
-`bootstrap`, create an initial ``ceph.conf`` file. For example::
+By default, cephadm does not deploy that minimized ``ceph.conf`` across the
+cluster. To enable the management of ``/etc/ceph/ceph.conf`` files on all
+hosts, please enable this by running::
+
+  ceph config set mgr mgr/cephadm/manage_etc_ceph_ceph_conf true
+
+To set up an initial configuration before bootstrapping 
+the cluster, create an initial ``ceph.conf`` file. For example::
 
   cat <<EOF > /etc/ceph/ceph.conf
   [global]
   osd crush chooseleaf type = 0
   EOF
+
+Then, run bootstrap referencing this file::
+
   cephadm bootstrap -c /root/ceph.conf ...
index 34661c43c62c34d5375f75f1957ee45751f7b58f..6a8d47723d4aef3bf0d8f1b47de9e212e64bcbc3 100644 (file)
@@ -331,6 +331,8 @@ like
     secret = "i love \# and \["
 
 
+.. _ceph-conf-database:
+
 Monitor configuration database
 ==============================