When using the radosgw multi instances configuration then the firewall
rules aren't adapted to that setup.
We only open the port according to the radosgw_frontend_port variable
so only the first radosgw instance port will be opened in the firewall
configuration.
We should instead iterate over the rgw_instances list.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit
e8bf0a0cf2fdd9d02e442b6778b8b3f76a1c9473)
- name: open rgw ports
firewalld:
- port: "{{ radosgw_frontend_port }}/tcp"
+ port: "{{ item.radosgw_frontend_port }}/tcp"
zone: "{{ ceph_rgw_firewall_zone }}"
permanent: true
immediate: true
state: enabled
+ loop: "{{ rgw_instances }}"
when:
- rgw_group_name is defined
- rgw_group_name in group_names