]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
igw: open iscsi target port
authorMike Christie <mchristi@redhat.com>
Tue, 30 Oct 2018 19:03:37 +0000 (14:03 -0500)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 12 Nov 2018 10:46:41 +0000 (10:46 +0000)
Open the port the iscsi target uses for iscsi traffic.

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 5ba7d1671ed421995e263f6abf6c2ccffac12422)

roles/ceph-infra/tasks/configure_firewall.yml

index 9650252b05e8e9fcc4c913f85e8c44db103a5df0..e316c7f63aadbf1f42ed39536960809dbdaa8331 100644 (file)
   tags:
     - firewall
 
+- name: open iscsi target ports
+  firewalld:
+    port: "3260/tcp"
+    zone: "{{ ceph_iscsi_firewall_zone }}"
+    source: "{{ public_network }}"
+    permanent: true
+    immediate: true
+    state: enabled
+  notify: restart firewalld
+  when:
+    - iscsi_gw_group_name is defined
+    - iscsi_gw_group_name in group_names
+    - (firewalld_pkg_query.get('rc', 1) == 0 or is_atomic)
+  tags:
+    - firewall
+
 - name: open iscsi api ports
   firewalld:
     port: "{{ api_port | default(5000) }}/tcp"