]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-config: make sure rgw_instances is set v4.0.70.23
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 Feb 2023 00:52:43 +0000 (01:52 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 7 Feb 2023 09:57:35 +0000 (10:57 +0100)
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 <gabrioux@redhat.com>
(cherry picked from commit e47288ef6c23820c4fa50835574169233cd06b12)

roles/ceph-config/tasks/main.yml

index 24171d28a3b28ef1044192a689a3c7759dfcb4a1..e07600289247b3df6ec44f33a78dc6d335bf299e 100644 (file)
     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: