ceph-infra: open radosgw ports for multi instances

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 e8bf0a0cf2)
pull/5147/head
Dimitri Savineau 2020-03-10 22:41:27 -04:00 committed by Dimitri Savineau
parent bf0a6835a2
commit d248f6bf8d
1 changed files with 2 additions and 1 deletions

View File

@ -129,11 +129,12 @@
- 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