Skip to content

Commit

Permalink
Setting fact _radosgw_address fail when RGW is on a different network
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
asm0deuz authored and guits committed Oct 20, 2022
1 parent 45c2f0a commit 590e57c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/ceph-dashboard/tasks/configure_dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
- include_role:
name: ceph-facts
tasks_from: set_radosgw_address.yml
loop: "{{ groups[rgw_group_name] }}"
loop: "{{ groups.get(rgw_group_name, []) }}"
loop_control:
loop_var: ceph_dashboard_call_item
when: inventory_hostname in groups.get(rgw_group_name, [])

- name: disable SSL for dashboard
when: dashboard_protocol == "http"
Expand Down

0 comments on commit 590e57c

Please sign in to comment.