summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-10-05 15:08:09 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-10-05 15:08:09 -0400
commit756ce62c438397da24e941ab50df87ded1dfc67c (patch)
tree718b2864951d305b7bada748f2413b7438d15be8 /playbooks
parent9ba5a4eac70561ab524e99f5e8ec982b17dd5eb8 (diff)
downloadopenshift-756ce62c438397da24e941ab50df87ded1dfc67c.tar.gz
openshift-756ce62c438397da24e941ab50df87ded1dfc67c.tar.bz2
openshift-756ce62c438397da24e941ab50df87ded1dfc67c.tar.xz
openshift-756ce62c438397da24e941ab50df87ded1dfc67c.zip
Set master facts for first master in node scaleup.
Diffstat (limited to 'playbooks')
-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: