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

Commit

Permalink
Importer one of PD addresse
Browse files Browse the repository at this point in the history
  • Loading branch information
superlzs0476 committed Dec 13, 2018
1 parent 6aba317 commit 98c34d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/tidb_lightning/templates/tidb-lightning.toml.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# lightning Configuration

{% set all_pd = [] -%}
{% set pd_hosts = groups.pd_servers -%}
{% set pd_host = groups.pd_servers[0] -%}
{% set pd_ip = hostvars[pd_host].ansible_host | default(hostvars[pd_host].inventory_hostname) -%}
{% set pd_port = hostvars[pd_host].pd_client_port -%}
{% set _ = all_pd.append("%s:%s" % (pd_ip, pd_port)) -%}
Expand Down

0 comments on commit 98c34d7

Please sign in to comment.