summaryrefslogtreecommitdiffstats
path: root/roles/openshift_router/tasks
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2015-06-10 11:49:16 -0700
committerJhon Honce <jhonce@redhat.com>2015-06-10 11:49:16 -0700
commit8d06801770850fd46bf400593d5e47a1fa36b23e (patch)
tree849259dec5cd9cd9a5dfbbbb530f5ed720c14cb5 /roles/openshift_router/tasks
parent04f49c188537a98c546b3e0620010b45c539f1e2 (diff)
downloadopenshift-8d06801770850fd46bf400593d5e47a1fa36b23e.tar.gz
openshift-8d06801770850fd46bf400593d5e47a1fa36b23e.tar.bz2
openshift-8d06801770850fd46bf400593d5e47a1fa36b23e.tar.xz
openshift-8d06801770850fd46bf400593d5e47a1fa36b23e.zip
* Refactor to use openshift_master_config_dir when deploying services
Diffstat (limited to 'roles/openshift_router/tasks')
-rw-r--r--roles/openshift_router/tasks/main.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/openshift_router/tasks/main.yml b/roles/openshift_router/tasks/main.yml
index f1ee99dd3..929177262 100644
--- a/roles/openshift_router/tasks/main.yml
+++ b/roles/openshift_router/tasks/main.yml
@@ -3,6 +3,9 @@
when: oreg_url is defined
- name: Deploy OpenShift Router
- command: openshift ex router --create --credentials=/var/lib/openshift/openshift.local.certificates/openshift-router/.kubeconfig {{ _ortr_images|default() }}
+ command: >
+ {{ openshift.common.admin_binary }} router
+ --create
+ --credentials={{ openshift_master_config_dir }}/openshift-router.kubeconfig {{ _ortr_images|default() }}
register: _ortr_results
changed_when: "'service exists' not in _ortr_results.stdout"