diff options
author | Jose A. Rivera <jarrpa@redhat.com> | 2017-07-21 10:31:45 -0500 |
---|---|---|
committer | Jose A. Rivera <jarrpa@redhat.com> | 2017-07-21 10:33:18 -0500 |
commit | 88dc8e94730c5d44bc6d7ed09043c7823bb202ab (patch) | |
tree | 18dc65ef6db49c67dba6f345b800043a9dcfe7d6 /playbooks/common | |
parent | 87689f890bb6d015f6c07e227174dc7c4172766e (diff) | |
download | openshift-88dc8e94730c5d44bc6d7ed09043c7823bb202ab.tar.gz openshift-88dc8e94730c5d44bc6d7ed09043c7823bb202ab.tar.bz2 openshift-88dc8e94730c5d44bc6d7ed09043c7823bb202ab.tar.xz openshift-88dc8e94730c5d44bc6d7ed09043c7823bb202ab.zip |
GlusterFS: Fix bug in detecting whether to open firewall ports.
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'playbooks/common')
-rw-r--r-- | playbooks/common/openshift-glusterfs/config.yml | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/playbooks/common/openshift-glusterfs/config.yml b/playbooks/common/openshift-glusterfs/config.yml index 1efdfb336..edc15a3f2 100644 --- a/playbooks/common/openshift-glusterfs/config.yml +++ b/playbooks/common/openshift-glusterfs/config.yml @@ -1,6 +1,6 @@ --- -- name: Open firewall ports for GlusterFS - hosts: oo_glusterfs_to_config +- name: Open firewall ports for GlusterFS nodes + hosts: glusterfs vars: os_firewall_allow: - service: glusterfs_sshd @@ -14,7 +14,24 @@ roles: - role: os_firewall when: - - openshift_storage_glusterfs_is_native | default(True) + - openshift_storage_glusterfs_is_native | default(True) | bool + +- name: Open firewall ports for GlusterFS registry nodes + hosts: glusterfs_registry + vars: + os_firewall_allow: + - service: glusterfs_sshd + port: "2222/tcp" + - service: glusterfs_daemon + port: "24007/tcp" + - service: glusterfs_management + port: "24008/tcp" + - service: glusterfs_bricks + port: "49152-49251/tcp" + roles: + - role: os_firewall + when: + - openshift_storage_glusterfs_registry_is_native | default(True) | bool - name: Configure GlusterFS hosts: oo_first_master |