From a043369d0780aa9fe6d3339745d922913d353322 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Wed, 15 Nov 2017 13:07:29 -0500 Subject: [PATCH] Enable image stream lookups in AWX OpenShift Project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See the OpenShift docs on this for more info: https://docs.openshift.com/container-platform/3.6/dev_guide/managing_images.html#using-is-with-k8s If you are not using OpenShift’s internal registry you will need to manually set awx_task_openshift_image and awx_web_openshift_image. --- installer/openshift/tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installer/openshift/tasks/main.yml b/installer/openshift/tasks/main.yml index 817e3a6ed4..4054a9db46 100644 --- a/installer/openshift/tasks/main.yml +++ b/installer/openshift/tasks/main.yml @@ -68,14 +68,17 @@ when: docker_registry is defined delegate_to: localhost + - name: Enable image stream lookups for awx images + shell: "oc set image-lookup --all -n {{ awx_openshift_project }}" + - name: Set full web image path set_fact: - awx_web_openshift_image: "{{ docker_registry }}/{{ docker_registry_repository }}/{{ awx_web_image }}:{{ awx_version }}" + awx_web_openshift_image: "{{ awx_web_image }}:{{ awx_version }}" when: awx_web_openshift_image is not defined - name: Set full task image path set_fact: - awx_task_openshift_image: "{{ docker_registry }}/{{ docker_registry_repository }}/{{ awx_task_image }}:{{ awx_version }}" + awx_task_openshift_image: "{{ awx_task_image }}:{{ awx_version }}" when: awx_task_openshift_image is not defined when: dockerhub_base is not defined