scaleup.yml 975 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. - import_playbook: ../init/evaluate_groups.yml
  3. - name: Ensure there are new_nodes
  4. hosts: localhost
  5. connection: local
  6. gather_facts: no
  7. tasks:
  8. - fail:
  9. msg: >
  10. Detected no new_nodes in inventory. Please add hosts to the
  11. new_nodes host group to add nodes.
  12. when:
  13. - g_new_node_hosts | default([]) | length == 0
  14. # if g_new_node_hosts is not empty, oo_nodes_to_config will be set to
  15. # g_new_node_hosts via evaluate_groups.yml
  16. - import_playbook: ../prerequisites.yml
  17. vars:
  18. l_scale_up_hosts: "oo_nodes_to_config"
  19. l_init_fact_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config:oo_nodes_to_config"
  20. l_sanity_check_hosts: "{{ groups['oo_nodes_to_config'] | union(groups['oo_masters_to_config']) }}"
  21. - import_playbook: ../init/version.yml
  22. vars:
  23. l_openshift_version_set_hosts: "oo_nodes_to_config:!oo_first_master"
  24. l_openshift_version_check_hosts: "oo_nodes_to_config"
  25. - import_playbook: private/config.yml