Skip to content

Commit

Permalink
Use openshift.common.client_binary
Browse files Browse the repository at this point in the history
  • Loading branch information
sdodson committed Nov 8, 2017
1 parent 26a6ddc commit ad977b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions roles/template_service_broker/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@

- name: Apply template file
shell: >
oc process -f "{{ mktemp.stdout }}/{{ __tsb_template_file }}"
{{ openshift.common.client_binary }} process -f "{{ mktemp.stdout }}/{{ __tsb_template_file }}"
--param API_SERVER_CONFIG="{{ config['content'] | b64decode }}"
--param IMAGE="{{ template_service_broker_prefix }}{{ template_service_broker_image_name }}:{{ template_service_broker_version }}"
| {{ openshift.common.client_binary }} apply -f -
# reconcile with rbac
- name: Reconcile with RBAC file
shell: >
oc process -f "{{ mktemp.stdout }}/{{ __tsb_rbac_file }}" | oc auth reconcile -f -
{{ openshift.common.client_binary }} process -f "{{ mktemp.stdout }}/{{ __tsb_rbac_file }}" | {{ openshift.common.client_binary }} auth reconcile -f -
- name: copy tech preview extension file for service console UI
copy:
Expand Down Expand Up @@ -82,7 +82,7 @@
# Register with broker
- name: Register TSB with broker
shell: >
oc process -f "{{ mktemp.stdout }}/{{ __tsb_broker_file }}" --param CA_BUNDLE="{{ __ca_bundle.content }}" | oc apply -f -
{{ openshift.common.client_binary }} process -f "{{ mktemp.stdout }}/{{ __tsb_broker_file }}" --param CA_BUNDLE="{{ __ca_bundle.content }}" | {{ openshift.common.client_binary }} apply -f -
- file:
state: absent
Expand Down
4 changes: 2 additions & 2 deletions roles/template_service_broker/tasks/remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

- name: Delete TSB broker
shell: >
oc process -f "{{ mktemp.stdout }}/{{ __tsb_broker_file }}" | oc delete --ignore-not-found -f -
{{ openshift.common.client_binary }} process -f "{{ mktemp.stdout }}/{{ __tsb_broker_file }}" | {{ openshift.common.client_binary }} delete --ignore-not-found -f -
- name: Delete TSB objects
shell: >
oc process -f "{{ mktemp.stdout }}/{{ __tsb_template_file }}" | oc delete --ignore-not-found -f -
{{ openshift.common.client_binary }} process -f "{{ mktemp.stdout }}/{{ __tsb_template_file }}" | {{ openshift.common.client_binary }} delete --ignore-not-found -f -
- name: empty out tech preview extension file for service console UI
copy:
Expand Down

0 comments on commit ad977b7

Please sign in to comment.