From 0ce0f6ab8eeb0ce96d932e69612d4c0e2a7f133f Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 7 Feb 2023 01:52:43 +0100 Subject: [PATCH] ceph-config: make sure rgw_instances is set We need to make sure `rgw_instances` is set before `ceph.conf` is rendered. Otherwise, the `ceph-crash` play in the main playbook updates (via ceph-handler) the `ceph.conf` on rgw nodes and removes rgw instances sections. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2141604 Signed-off-by: Guillaume Abrioux (cherry picked from commit e47288ef6c23820c4fa50835574169233cd06b12) --- roles/ceph-config/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/ceph-config/tasks/main.yml b/roles/ceph-config/tasks/main.yml index 73262d103..d20bcdbee 100644 --- a/roles/ceph-config/tasks/main.yml +++ b/roles/ceph-config/tasks/main.yml @@ -122,6 +122,12 @@ mode: "{{ ceph_directories_mode }}" when: not containerized_deployment | bool +- name: import_role ceph-facts + import_role: + name: ceph-facts + tasks_from: set_radosgw_address.yml + when: inventory_hostname in groups.get(rgw_group_name, []) + - name: "generate {{ cluster }}.conf configuration file" action: config_template args: -- 2.39.5