summaryrefslogtreecommitdiffstats
path: root/playbooks/common
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-10-06 08:13:24 -0400
committerGitHub <noreply@github.com>2016-10-06 08:13:24 -0400
commitc7d9c63088f58a3aa338981083a9fb21a8c5c7f5 (patch)
tree806e0044727ec568445789a7dd01abef203e2e80 /playbooks/common
parentca44492626a23d7755d6e4d481af2a129e0847d6 (diff)
parent756ce62c438397da24e941ab50df87ded1dfc67c (diff)
downloadopenshift-c7d9c63088f58a3aa338981083a9fb21a8c5c7f5.tar.gz
openshift-c7d9c63088f58a3aa338981083a9fb21a8c5c7f5.tar.bz2
openshift-c7d9c63088f58a3aa338981083a9fb21a8c5c7f5.tar.xz
openshift-c7d9c63088f58a3aa338981083a9fb21a8c5c7f5.zip
Merge pull request #2555 from abutcher/node-scaleup-facts
Bug 1381335 - Scale up playbook does not rerun master-facts.
Diffstat (limited to 'playbooks/common')
-rw-r--r--playbooks/common/openshift-node/scaleup.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/playbooks/common/openshift-node/scaleup.yml b/playbooks/common/openshift-node/scaleup.yml
index 1d79db353..bb3b1e780 100644
--- a/playbooks/common/openshift-node/scaleup.yml
+++ b/playbooks/common/openshift-node/scaleup.yml
@@ -6,6 +6,17 @@
roles:
- openshift_facts
+- name: Gather and set facts for first master
+ hosts: oo_first_master
+ vars:
+ openshift_master_count: "{{ groups.oo_masters | length }}"
+ pre_tasks:
+ - set_fact:
+ openshift_master_default_subdomain: "{{ lookup('oo_option', 'openshift_master_default_subdomain') | default(None, true) }}"
+ when: openshift_master_default_subdomain is not defined
+ roles:
+ - openshift_master_facts
+
- name: Configure docker hosts
hosts: oo_nodes_to_config
vars: