summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-09-14 12:41:08 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-09-14 12:41:08 -0400
commited7d4dc694eb334421d7730e6002e2bd74f76ff7 (patch)
treeb77f936dac47584f48c786377311c6511b097254 /playbooks
parentf3b7f5eb6b79af0caee5063b636e87515bcd720c (diff)
downloadopenshift-ed7d4dc694eb334421d7730e6002e2bd74f76ff7.tar.gz
openshift-ed7d4dc694eb334421d7730e6002e2bd74f76ff7.tar.bz2
openshift-ed7d4dc694eb334421d7730e6002e2bd74f76ff7.tar.xz
openshift-ed7d4dc694eb334421d7730e6002e2bd74f76ff7.zip
[redeploy-certificates] Set default value for openshift_master_default_subdomain as workaround.
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/redeploy-certificates.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/redeploy-certificates.yml b/playbooks/common/openshift-cluster/redeploy-certificates.yml
index 46b461770..5b72c3450 100644
--- a/playbooks/common/openshift-cluster/redeploy-certificates.yml
+++ b/playbooks/common/openshift-cluster/redeploy-certificates.yml
@@ -52,6 +52,14 @@
openshift_ca_host: "{{ groups.oo_first_master.0 }}"
openshift_master_count: "{{ openshift.master.master_count | default(groups.oo_masters | length) }}"
pre_tasks:
+ # set_fact task copied from playbooks/common/openshift-master/config.yml
+ # so that openshift_master_default_subdomain has a default value of ""
+ # (emptry string). openshift_master_default_subdomain must have a default
+ # value for openshift_master_facts to set metrics_public_url.
+ # TODO: clean this up.
+ - set_fact:
+ openshift_master_default_subdomain: "{{ lookup('oo_option', 'openshift_master_default_subdomain') | default(None, true) }}"
+ when: openshift_master_default_subdomain is not defined
- stat:
path: "{{ openshift_generated_configs_dir }}"
register: openshift_generated_configs_dir_stat