From 756ce62c438397da24e941ab50df87ded1dfc67c Mon Sep 17 00:00:00 2001 From: Andrew Butcher Date: Wed, 5 Oct 2016 15:08:09 -0400 Subject: Set master facts for first master in node scaleup. --- playbooks/common/openshift-node/scaleup.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'playbooks') 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: -- cgit v1.2.3