diff options
author | Andrew Butcher <abutcher@redhat.com> | 2017-06-30 11:23:29 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2017-06-30 13:33:40 -0400 |
commit | c676e27bf29c2decc39bef186b43081e861e92e6 (patch) | |
tree | 3ea1e276d948f277cf0c084c68fa0c43b5072e51 /roles/openshift_hosted/tasks | |
parent | ca089c724a7a44efa6abb88313a461f9f7cda122 (diff) | |
download | openshift-c676e27bf29c2decc39bef186b43081e861e92e6.tar.gz openshift-c676e27bf29c2decc39bef186b43081e861e92e6.tar.bz2 openshift-c676e27bf29c2decc39bef186b43081e861e92e6.tar.xz openshift-c676e27bf29c2decc39bef186b43081e861e92e6.zip |
Set OPENSHIFT_DEFAULT_REGISTRY in registry dc.
Diffstat (limited to 'roles/openshift_hosted/tasks')
-rw-r--r-- | roles/openshift_hosted/tasks/registry/registry.yml | 5 |
1 files changed, 5 insertions, 0 deletions
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 }}" |