Skip to content

Commit

Permalink
feat: remove mysql parameters from more vtorc configs
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed Oct 22, 2024
1 parent f575ff0 commit 5e5f129
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions config/vtorc/default.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"Debug": true,
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"RecoveryPeriodBlockSeconds": 5
}
4 changes: 0 additions & 4 deletions examples/common/vtorc/config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"RecoveryPeriodBlockSeconds": 1,
"InstancePollSeconds": 1
}
4 changes: 0 additions & 4 deletions examples/compose/vtorc-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ if [ $external = 1 ] ; then
# This can be overridden by passing VTORC_CONFIG env variable
echo "Updating $config..."
cp /vt/vtorc/default.json /vt/vtorc/tmp.json
sed -i '/MySQLTopologyUser/c\ \"MySQLTopologyUser\" : \"'"$DB_USER"'\",' /vt/vtorc/tmp.json
sed -i '/MySQLTopologyPassword/c\ \"MySQLTopologyPassword\" : \"'"$DB_PASS"'\",' /vt/vtorc/tmp.json
sed -i '/MySQLReplicaUser/c\ \"MySQLReplicaUser\" : \"'"$DB_USER"'\",' /vt/vtorc/tmp.json
sed -i '/MySQLReplicaPassword/c\ \"MySQLReplicaPassword\" : \"'"$DB_PASS"'\",' /vt/vtorc/tmp.json
cat /vt/vtorc/tmp.json
cp /vt/vtorc/tmp.json /vt/vtorc/config.json
else
Expand Down
4 changes: 0 additions & 4 deletions examples/compose/vtorc/default.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"Debug": true,
"EnableSyslog": false,
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"BackendDB": "sqlite",
"SQLite3DataFile": "/tmp/vtorc.sqlite3",
"RecoverMasterClusterFilters": ["*"],
Expand Down

0 comments on commit 5e5f129

Please sign in to comment.