summaryrefslogtreecommitdiffstats
path: root/roles/cockpit-ui/tasks/main.yml
diff options
context:
space:
mode:
authorRobert Bohne <Robert.Bohne@ConSol.de>2016-09-28 19:07:29 +0200
committerRobert Bohne <Robert.Bohne@ConSol.de>2016-09-28 19:07:29 +0200
commit2d7c49c57696c9beec320e8663eaa539df696ac5 (patch)
tree343033e902415b60211d3e90c8d095c2567987e7 /roles/cockpit-ui/tasks/main.yml
parent58117cf76208fca86b73f4c0d1738e1606869333 (diff)
downloadopenshift-2d7c49c57696c9beec320e8663eaa539df696ac5.tar.gz
openshift-2d7c49c57696c9beec320e8663eaa539df696ac5.tar.bz2
openshift-2d7c49c57696c9beec320e8663eaa539df696ac5.tar.xz
openshift-2d7c49c57696c9beec320e8663eaa539df696ac5.zip
Don't set IMAGE_PREFIX if openshift_cockpit_deployer_prefix is empty
If openshift_cockpit_deployer_prefix was empty then they called "-p IMAGE_PREFIX=" and this overwrite the template default. For example: ``` grep -A1 -B1 'name: IMAGE_PREFIX' examples/infrastructure-templates/enterprise/registry-console.yaml - description: 'Specify "registry/repository" prefix for container image; e.g. for "registry.access.redhat.com/openshift3/registry-console:latest", set prefix "registry.access.redhat.com/openshift3/"' name: IMAGE_PREFIX value: "registry.access.redhat.com/openshift3/" ```
Diffstat (limited to 'roles/cockpit-ui/tasks/main.yml')
-rw-r--r--roles/cockpit-ui/tasks/main.yml5
1 files changed, 1 insertions, 4 deletions
diff --git a/roles/cockpit-ui/tasks/main.yml b/roles/cockpit-ui/tasks/main.yml
index 9fc15ee8b..953357392 100644
--- a/roles/cockpit-ui/tasks/main.yml
+++ b/roles/cockpit-ui/tasks/main.yml
@@ -50,13 +50,10 @@
register: registry_console_cockpit_kube_url
changed_when: false
-- set_fact:
- cockpit_image_prefix: "{{ '-p IMAGE_PREFIX=' ~ openshift_cockpit_deployer_prefix | default('') }}"
-
- name: Deploy registry-console
command: >
{{ openshift.common.client_binary }} new-app --template=registry-console
- {{ cockpit_image_prefix }}
+ {% if openshift_cockpit_deployer_prefix is defined %}-p IMAGE_PREFIX="{{ openshift_cockpit_deployer_prefix }}"{% endif %}
-p OPENSHIFT_OAUTH_PROVIDER_URL="{{ openshift.master.public_api_url }}"
-p REGISTRY_HOST="{{ docker_registry_route.stdout }}"
-p COCKPIT_KUBE_URL="{{ registry_console_cockpit_kube_url.stdout }}"