-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail within scaleup playbooks when new_{nodes,masters} host groups ar…
…e empty.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
--- | ||
- 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) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
abutcher
Author
Member
|
||
|
||
- include: ../../common/openshift-master/scaleup.yml | ||
vars: | ||
openshift_cluster_id: "{{ cluster_id | default('default') }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why do we need to test new nodes as well if this is a master scaling up?