scaleup.yml 659 B

12345678910111213141516171819202122
  1. ---
  2. - include: ../openshift-cluster/initialize_groups.yml
  3. - name: Ensure there are new_nodes
  4. hosts: localhost
  5. connection: local
  6. become: no
  7. gather_facts: no
  8. tasks:
  9. - fail:
  10. msg: >
  11. Detected no new_nodes in inventory. Please add hosts to the
  12. new_nodes host group to add nodes.
  13. when:
  14. - g_new_node_hosts | default([]) | length == 0
  15. - include: ../../common/openshift-node/scaleup.yml
  16. vars:
  17. openshift_cluster_id: "{{ cluster_id | default('default') }}"
  18. openshift_debug_level: "{{ debug_level | default(2) }}"
  19. openshift_master_etcd_hosts: "{{ groups.etcd | default([]) }}"
  20. openshift_master_etcd_port: 2379