summaryrefslogtreecommitdiffstats
path: root/playbooks/common
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-08-15 09:53:49 -0400
committerGitHub <noreply@github.com>2017-08-15 09:53:49 -0400
commit2dd904feeec57bcb46281a7066b26c140fadfef8 (patch)
tree0c033d0dc7e4eb071fc729efc55c490c9afd470d /playbooks/common
parent0a439f29d56f152f60d360546e83a5130656c7a6 (diff)
parent6ff354437718584783589c3403cefe9d1b75ee52 (diff)
downloadopenshift-2dd904feeec57bcb46281a7066b26c140fadfef8.tar.gz
openshift-2dd904feeec57bcb46281a7066b26c140fadfef8.tar.bz2
openshift-2dd904feeec57bcb46281a7066b26c140fadfef8.tar.xz
openshift-2dd904feeec57bcb46281a7066b26c140fadfef8.zip
Merge pull request #5072 from kwoodson/glusterfs_fw
Glusterfs firewall updates.
Diffstat (limited to 'playbooks/common')
-rw-r--r--playbooks/common/openshift-glusterfs/config.yml38
1 files changed, 12 insertions, 26 deletions
diff --git a/playbooks/common/openshift-glusterfs/config.yml b/playbooks/common/openshift-glusterfs/config.yml
index edc15a3f2..d9de578f3 100644
--- a/playbooks/common/openshift-glusterfs/config.yml
+++ b/playbooks/common/openshift-glusterfs/config.yml
@@ -1,40 +1,26 @@
---
- name: Open firewall ports for GlusterFS nodes
hosts: glusterfs
- 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
+ tasks:
+ - include_role:
+ name: openshift_storage_glusterfs
+ tasks_from: firewall.yml
when:
- 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
+ tasks:
+ - include_role:
+ name: openshift_storage_glusterfs
+ tasks_from: firewall.yml
when:
- openshift_storage_glusterfs_registry_is_native | default(True) | bool
- name: Configure GlusterFS
hosts: oo_first_master
- roles:
- - role: openshift_storage_glusterfs
+ tasks:
+ - name: setup glusterfs
+ include_role:
+ name: openshift_storage_glusterfs
when: groups.oo_glusterfs_to_config | default([]) | count > 0