scaleup.yml 718 B

123456789101112131415161718192021222324
  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-cluster/std_include.yml
  16. - include: ../../common/openshift-node/scaleup.yml
  17. vars:
  18. openshift_cluster_id: "{{ cluster_id | default('default') }}"
  19. openshift_debug_level: "{{ debug_level | default(2) }}"
  20. openshift_master_etcd_hosts: "{{ groups.etcd | default([]) }}"
  21. openshift_master_etcd_port: 2379