]> git.proxmox.com Git - pve-storage.git/commitdiff
cephconfig: change order of written sections
authorMax Carrara <m.carrara@proxmox.com>
Tue, 2 Apr 2024 14:55:17 +0000 (16:55 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 11 Apr 2024 09:53:37 +0000 (11:53 +0200)
in order to group related sections together.

Additionally, sections that are associated with the client, for
example '[client.foo]', are written directly after the '[client]'
section.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
src/PVE/CephConfig.pm

index 1fb467daeaeec1f1297d920813fff69dead3a4be..1b6e86cab3864be813f91268d01145dba1e4a462 100644 (file)
@@ -82,16 +82,20 @@ sub write_ceph_config {
 
     my @rexprs = (
        qr/global/,
+
        qr/client/,
+       qr/client\..*/,
 
        qr/mds/,
-       qr/mon/,
-       qr/osd/,
-       qr/mgr/,
-
        qr/mds\..*/,
+
+       qr/mon/,
        qr/mon\..*/,
+
+       qr/osd/,
        qr/osd\..*/,
+
+       qr/mgr/,
        qr/mgr\..*/,
 
        qr/.*/,