From c676e27bf29c2decc39bef186b43081e861e92e6 Mon Sep 17 00:00:00 2001 From: Andrew Butcher Date: Fri, 30 Jun 2017 11:23:29 -0400 Subject: Set OPENSHIFT_DEFAULT_REGISTRY in registry dc. --- roles/openshift_hosted/tasks/registry/registry.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/openshift_hosted/tasks/registry/registry.yml b/roles/openshift_hosted/tasks/registry/registry.yml index 2eeb2e7ce..b946ec8ca 100644 --- a/roles/openshift_hosted/tasks/registry/registry.yml +++ b/roles/openshift_hosted/tasks/registry/registry.yml @@ -56,6 +56,11 @@ openshift_hosted_registry_force: - False +- name: Update registry environment variables when pushing via dns + set_fact: + openshift_hosted_registry_env_vars: "{{ openshift_hosted_registry_env_vars | combine({'OPENSHIFT_DEFAULT_REGISTRY':'docker-registry.default.svc:5000'}) }}" + when: openshift_push_via_dns | default(false) | bool + - name: Create the registry service account oc_serviceaccount: name: "{{ openshift_hosted_registry_serviceaccount }}" -- cgit v1.2.3