]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-infra: open radosgw ports for multi instances
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 11 Mar 2020 02:41:27 +0000 (22:41 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 12 Mar 2020 23:04:26 +0000 (19:04 -0400)
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)

roles/ceph-infra/tasks/configure_firewall.yml

index 3d566b73b272b255d1e76c664cf39e4ab0a6a1eb..c43919c08ad7abb1d70fc75af530e16c3146f621 100644 (file)
 
     - 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