cephconfig: change order of written sections

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>
This commit is contained in:
Max Carrara
2024-04-02 16:55:17 +02:00
committed by Fabian Grünbichler
parent 8777f4a600
commit f9d9bd3223

View 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/.*/,