summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-master/scaleup.yml
blob: e3ef704e57dec3dc454d5505e38728057b55aac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- include: ../openshift-cluster/initialize_groups.yml

- name: Ensure there are new_masters
  hosts: localhost
  connection: local
  become: no
  gather_facts: no
  tasks:
  - fail:
      msg: >
        Detected no new_masters or no new_nodes in inventory. Please
        add hosts to the new_masters and new_nodes host groups to add
        masters.
    when:
    - (g_new_master_hosts | default([]) | length == 0) or (g_new_node_hosts | default([]) | length == 0)

- include: ../../common/openshift-cluster/std_include.yml

- include: ../../common/openshift-master/scaleup.yml
  vars:
    openshift_cluster_id: "{{ cluster_id | default('default') }}"
    openshift_debug_level: "{{ debug_level | default(2) }}"