summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-glusterfs/config.yml
blob: c2ae5f313c136c98d680e569de8e1f8a889c4c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
- name: GlusterFS Install Checkpoint Start
  hosts: oo_all_hosts
  gather_facts: false
  tasks:
  - name: Set GlusterFS install 'In Progress'
    set_stats:
      data:
        installer_phase_glusterfs: "In Progress"
      aggregate: false

- name: Open firewall ports for GlusterFS nodes
  hosts: glusterfs
  tasks:
  - include_role:
      name: openshift_storage_glusterfs
      tasks_from: firewall.yml
    when:
    - openshift_storage_glusterfs_is_native | default(True) | bool
  - include_role:
      name: openshift_storage_glusterfs
      tasks_from: kernel_modules.yml
    when:
    - openshift_storage_glusterfs_is_native | default(True) | bool

- name: Open firewall ports for GlusterFS registry nodes
  hosts: glusterfs_registry
  tasks:
  - include_role:
      name: openshift_storage_glusterfs
      tasks_from: firewall.yml
    when:
    - openshift_storage_glusterfs_registry_is_native | default(True) | bool
  - include_role:
      name: openshift_storage_glusterfs
      tasks_from: kernel_modules.yml
    when:
    - openshift_storage_glusterfs_registry_is_native | default(True) | bool

- name: Configure GlusterFS
  hosts: oo_first_master
  tasks:
  - name: setup glusterfs
    include_role:
      name: openshift_storage_glusterfs
    when: groups.oo_glusterfs_to_config | default([]) | count > 0

- name: GlusterFS Install Checkpoint End
  hosts: oo_all_hosts
  gather_facts: false
  tasks:
  - name: Set GlusterFS install 'Complete'
    set_stats:
      data:
        installer_phase_glusterfs: "Complete"
      aggregate: false