|
@@ -1,40 +1,26 @@
|
|
---
|
|
---
|
|
- name: Open firewall ports for GlusterFS nodes
|
|
- name: Open firewall ports for GlusterFS nodes
|
|
hosts: glusterfs
|
|
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:
|
|
when:
|
|
- openshift_storage_glusterfs_is_native | default(True) | bool
|
|
- openshift_storage_glusterfs_is_native | default(True) | bool
|
|
|
|
|
|
- name: Open firewall ports for GlusterFS registry nodes
|
|
- name: Open firewall ports for GlusterFS registry nodes
|
|
hosts: glusterfs_registry
|
|
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:
|
|
when:
|
|
- openshift_storage_glusterfs_registry_is_native | default(True) | bool
|
|
- openshift_storage_glusterfs_registry_is_native | default(True) | bool
|
|
|
|
|
|
- name: Configure GlusterFS
|
|
- name: Configure GlusterFS
|
|
hosts: oo_first_master
|
|
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
|
|
when: groups.oo_glusterfs_to_config | default([]) | count > 0
|