From f9d9bd32239b5dc490fd7182cc6b01dab385b877 Mon Sep 17 00:00:00 2001 From: Max Carrara Date: Tue, 2 Apr 2024 16:55:17 +0200 Subject: [PATCH] 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 Tested-by: Friedrich Weber --- src/PVE/CephConfig.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/PVE/CephConfig.pm b/src/PVE/CephConfig.pm index 1fb467d..1b6e86c 100644 --- a/src/PVE/CephConfig.pm +++ b/src/PVE/CephConfig.pm @@ -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/.*/,