Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Fix local roles downloads binlog bug #729

Merged
merged 4 commits into from
Apr 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion roles/local/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
with_items: "{{ tidb_binlog_kafka }}"
when: has_outbound_network
when:
- has_outbound_network
- not deploy_without_tidb|default(false)

- name: download common binary
get_url:
Expand Down Expand Up @@ -155,6 +157,8 @@
chdir: "{{ downloads_dir }}"
warn: no
with_items: "{{ tidb_binlog_kafka }}"
when:
- not deploy_without_tidb|default(false)

- name: unarchive common binary
shell: ls -1 {{ item.name }}-{{ item.version }}.tar.gz | xargs -n1 tar xzf
Expand All @@ -172,6 +176,8 @@
shell: >
cp -v {{ downloads_dir }}/{{ item.name }}-{{ item.version}}*/bin/* "{{ resources_dir }}/bin/binlog_kafka/"
with_items: "{{ tidb_binlog_kafka }}"
when:
- not deploy_without_tidb|default(false)

- name: cp fio binary
shell: >
Expand Down
2 changes: 0 additions & 2 deletions roles/local/templates/common_packages.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ tidb_packages:
url: http://download.pingcap.org/tidb-{{ tidb_version }}-linux-amd64.tar.gz

tidb_binlog_kafka:
{% if not deploy_without_tidb|default(false) %}
- name: tidb-binlog-kafka
version: {{ tidb_version }}
url: http://download.pingcap.org/tidb-binlog-kafka-{{ tidb_version }}-linux-amd64.tar.gz
{% endif %}

common_packages:
- name: fio
Expand Down