]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Setting fact _radosgw_address fail when RGW is on a different network
authorTeoman ONAY <tonay@redhat.com>
Tue, 18 Oct 2022 13:28:54 +0000 (15:28 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 27 Oct 2022 08:29:35 +0000 (10:29 +0200)
Changed the when condition to only execute that fact setting on RGW
nodes while before it was run on all nodes and failed if the node
was not on the same network range as the RGW.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2131150
Signed-off-by: Teoman ONAY <tonay@redhat.com>
(cherry picked from commit 590e57cc1b9a79ced7a9208db8bf8eaf43d3f320)

roles/ceph-dashboard/tasks/configure_dashboard.yml

index 42c976d4411d6dc159c9a5e93adad98975e9d5ac..969a47e55a75ad117c18314b954cf87541d16984 100644 (file)
@@ -36,7 +36,7 @@
   loop: "{{ groups.get(rgw_group_name, []) }}"
   loop_control:
     loop_var: ceph_dashboard_call_item
-  when: groups.get(rgw_group_name, []) | length > 0
+  when: inventory_hostname in groups.get(rgw_group_name, [])
 
 - name: disable SSL for dashboard
   when: dashboard_protocol == "http"