config.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ---
  2. - name: GlusterFS Install Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set GlusterFS install 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_glusterfs:
  11. status: "In Progress"
  12. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  13. - name: Open firewall ports for GlusterFS nodes
  14. hosts: glusterfs
  15. tasks:
  16. - import_role:
  17. name: openshift_storage_glusterfs
  18. tasks_from: firewall.yml
  19. when:
  20. - openshift_storage_glusterfs_is_native | default(True) | bool
  21. - name: Open firewall ports for GlusterFS registry nodes
  22. hosts: glusterfs_registry
  23. tasks:
  24. - import_role:
  25. name: openshift_storage_glusterfs
  26. tasks_from: firewall.yml
  27. when:
  28. - openshift_storage_glusterfs_registry_is_native | default(True) | bool
  29. - name: Load kernel modules for nodes
  30. hosts: oo_nodes_to_config
  31. tasks:
  32. - import_role:
  33. name: openshift_storage_glusterfs
  34. tasks_from: kernel_modules.yml
  35. when:
  36. - openshift_storage_glusterfs_registry_is_native | default(True) | bool
  37. - name: Configure GlusterFS
  38. hosts: oo_first_master
  39. tasks:
  40. - name: setup glusterfs
  41. import_role:
  42. name: openshift_storage_glusterfs
  43. when: groups.oo_glusterfs_to_config | default([]) | count > 0
  44. - name: GlusterFS Install Checkpoint End
  45. hosts: all
  46. gather_facts: false
  47. tasks:
  48. - name: Set GlusterFS install 'Complete'
  49. run_once: true
  50. set_stats:
  51. data:
  52. installer_phase_glusterfs:
  53. status: "Complete"
  54. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"