Skip to content

Commit

Permalink
don't add config if not set in inventory.ini (pingcap#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXiangUSTC authored Nov 5, 2019
1 parent b95de78 commit 333b750
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dm/dm-ansible/roles/dm-worker/templates/dm-worker.toml.j2
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
# Worker Configuration.

{% if server_id|default(false) %}
server-id = {{ server_id }}
{% endif %}

source-id = "{{ source_id }}"

{% if flavor|default(false) %}
flavor = "{{ flavor }}"
{% endif %}

enable-gtid = {{ enable_gtid }}

{% if relay_binlog_name|default(false) %}
relay-binlog-name = "{{ relay_binlog_name }}"
{% endif %}

{% if relay_binlog_gtid|default(false) %}
relay-binlog-gtid = "{{ relay_binlog_gtid }}"
{% endif %}

#charset of DSN of source mysql/mariadb instance
charset = ""
meta-dir = ""
Expand Down

0 comments on commit 333b750

Please sign in to comment.