我们自己写了一个env.ini的脚本,脚本内容如下,现在如何改造这个env.ini可以按环境分开

[BASE_SETUP]
BASE_DIR=/home/tidb/dm-ansible
BIN_DIR=/home/tidb/dm-ansible/resources/bin

[MASTER]
MASTER_ADDR=

[WORKERS]
WORKER1
WORKER2
WORKER3
WORKER4
WORKER5
WORKER6

[WORKER1]
WORKER_ADDR=
WORKER_SOURCE_ADDR=
SOURCE_ID=mysql-replica-01

[WORKER2]
WORKER_ADDR=
WORKER_SOURCE_ADDR=
SOURCE_ID=mysql-replica-02

[WORKER3]
WORKER_ADDR=
WORKER_SOURCE_ADDR=
SOURCE_ID=mysql-replica-03

[WORKER4]
WORKER_ADDR=
WORKER_SOURCE_ADDR=
SOURCE_ID=mysql-replica-04

[WORKER5]
WORKER_ADDR=
WORKER_SOURCE_ADDR=
SOURCE_ID=mysql-replica-05

[WORKER6]
WORKER_ADDR=
WORKER_SOURCE_ADDR=
SOURCE_ID=mysql-replica-06

[SCHEMA_LIST_WORKER1]
bcljs

[SCHEMA_LIST_WORKER2]
language

[SCHEMA_LIST_WORKER3]
access

[SCHEMA_LIST_WORKER4]
adecco

[SCHEMA_LIST_WORKER5]
ctftest

[SCHEMA_LIST_WORKER6]

如何进行改造可以按照环境进行区分开来

  1. 脚本类问题麻烦请您自己研究下,可以多测试。
  2. 建议使用 tiup 配置,多谢。