瀏覽代碼

Merge pull request #1965 from abutcher/router-registryurl

Ensure registry url evaluated when creating router.
Jason DeTiberus 8 年之前
父節點
當前提交
1c6787d269
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      playbooks/common/openshift-cluster/openshift_hosted.yml

+ 3 - 1
playbooks/common/openshift-cluster/openshift_hosted.yml

@@ -1,5 +1,7 @@
 - name: Create Hosted Resources
   hosts: oo_first_master
+  pre_tasks:
+  - set_fact:
+      openshift_hosted_router_registryurl: "{{ hostvars[groups.oo_first_master.0].openshift.master.registry_url }}"
   roles:
   - role: openshift_hosted
-    openshift_hosted_router_registryurl: "{{ hostvars[groups.oo_first_master.0].openshift.master.registry_url }}"