summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted/tasks
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-12-01 12:37:20 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2016-12-01 12:37:20 -0400
commit7e8e98dad2adde361c7ecc6e7b043429bed6d77a (patch)
tree9a193f72094d77fae4369ec2a31f714c58e11a9f /roles/openshift_hosted/tasks
parent4ff3ae5f8e99145a06a0cc9976ec07c008831b65 (diff)
downloadopenshift-7e8e98dad2adde361c7ecc6e7b043429bed6d77a.tar.gz
openshift-7e8e98dad2adde361c7ecc6e7b043429bed6d77a.tar.bz2
openshift-7e8e98dad2adde361c7ecc6e7b043429bed6d77a.tar.xz
openshift-7e8e98dad2adde361c7ecc6e7b043429bed6d77a.zip
Fix metricsPublicURL only being set correctly on first master.
Problem was caused by facts not being set for that master. To fix this patch cleans up the calculation of metricsPublicURL in general. Because this value is used in openshift_master to template into the master config file, we now define these facts more clearly in openshift_master_facts, and add a dependency on this to openshift_metrics. The calculation of default sub-domain is also changed to remove it from system facts (as neither of these are facts about the system) and instead use plain variables.
Diffstat (limited to 'roles/openshift_hosted/tasks')
-rw-r--r--roles/openshift_hosted/tasks/registry/secure.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_hosted/tasks/registry/secure.yml b/roles/openshift_hosted/tasks/registry/secure.yml
index d2f6ba5f6..b6d007835 100644
--- a/roles/openshift_hosted/tasks/registry/secure.yml
+++ b/roles/openshift_hosted/tasks/registry/secure.yml
@@ -29,7 +29,7 @@
changed_when: false
- set_fact:
- docker_registry_route_hostname: "{{ 'docker-registry-default.' ~ (openshift.master.default_subdomain | default('router.default.svc.cluster.local', true)) }}"
+ docker_registry_route_hostname: "{{ 'docker-registry-default.' ~ (openshift_master_default_subdomain | default('router.default.svc.cluster.local', true)) }}"
- name: Create registry certificates if they do not exist
command: >