]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: write output files to /etc/ceph by default
authorSage Weil <sage@redhat.com>
Sun, 15 Mar 2020 15:12:07 +0000 (10:12 -0500)
committerSage Weil <sage@redhat.com>
Sun, 15 Mar 2020 15:19:22 +0000 (10:19 -0500)
This streamlines the install for most users by putting the config and
keyring files in /etc/ceph, where other ceph CLI commands will find them.

The cost is making isolated installs a bit more painful, by requiring
that users specify a local location for --output-config etc.

Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm

index 4a8e7bcc1c9971bd6f4fe8f785df8ef2f00eb1e9..93830d0beabafb76a1f441c4e1a43d56a66ad98f 100755 (executable)
@@ -3874,15 +3874,15 @@ def _get_parser():
         help='cluster FSID')
     parser_bootstrap.add_argument(
         '--output-keyring',
-        default='ceph.client.admin.keyring',
+        default='/etc/ceph/ceph.client.admin.keyring',
         help='location to write keyring file with new cluster admin and mon keys')
     parser_bootstrap.add_argument(
         '--output-config',
-        default='ceph.conf',
+        default='/etc/ceph/ceph.conf',
         help='location to write conf file to connect to new cluster')
     parser_bootstrap.add_argument(
         '--output-pub-ssh-key',
-        default='ceph.pub',
+        default='/etc/ceph/ceph.pub',
         help='location to write the cluster\'s public SSH key')
     parser_bootstrap.add_argument(
         '--skip-ssh',