mirror of https://github.com/ceph/ceph-ansible.git
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
parent
bf0a6835a2
commit
d248f6bf8d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue