update_topology.yml 1020 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. # This taskfile is called when adding new nodes doing node and master
  3. # scaleup play.
  4. - import_tasks: mktemp.yml
  5. # l_gluster_reload_topo passed in via add_hosts.yml
  6. - when: l_gluster_reload_topo | default(True)
  7. block:
  8. - import_tasks: glusterfs_config_facts.yml
  9. - import_tasks: label_nodes.yml
  10. - import_tasks: heketi_pod_check.yml
  11. - import_tasks: get_heketi_key.yml
  12. - import_tasks: wait_for_pods.yml
  13. - import_tasks: heketi_load.yml
  14. when:
  15. - glusterfs_nodes | default([]) | count > 0
  16. # l_gluster_registry_reload_topo passed in via add_hosts.yml
  17. - when: l_gluster_registry_reload_topo | default(True)
  18. block:
  19. - import_tasks: glusterfs_registry_facts.yml
  20. - import_tasks: label_nodes.yml
  21. - import_tasks: heketi_pod_check.yml
  22. - import_tasks: get_heketi_key.yml
  23. - import_tasks: wait_for_pods.yml
  24. - import_tasks: heketi_load.yml
  25. when:
  26. - glusterfs_nodes | default([]) | count > 0
  27. - "'glusterfs' not in groups or glusterfs_nodes != groups.glusterfs"
  28. - import_tasks: rmtemp.yml