File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
globals :
2
+ db_cluster_path : https://github.com/raw/jelastic-jps/mysql-cluster/v3.0.0
2
3
customConfigFile : /etc/mysql/conf.d/my_custom.cnf
3
4
4
5
actions :
@@ -74,7 +75,7 @@ actions:
74
75
75
76
setupAdminUser :
76
77
- cmd[${this.id}] : |-
77
- wget ${baseUrl }/scripts/setupUser.sh -O ~/setupUser.sh &>> /var/log/run.log ;
78
+ wget ${globals.db_cluster_path }/scripts/setupUser.sh -O ~/setupUser.sh;
78
79
bash ~/setupUser.sh ${globals.DB_USER} ${globals.DB_PASS} &>> /var/log/run.log;
79
80
user: root
80
81
@@ -87,7 +88,7 @@ actions:
87
88
pswd : ${globals.REPLICA_PSWD}
88
89
89
90
addCustomConfig :
90
- - cmd[sqldb] : wget ${baseUrl }/configs/custom.cnf -O ${globals.customConfigFile} &>> /var/log/run.log ;
91
+ - cmd[sqldb] : wget ${globals.db_cluster_path }/configs/custom.cnf -O ${globals.customConfigFile};
91
92
- env.file.AddFavorite :
92
93
nodeGroup : sqldb
93
94
path : ${globals.customConfigFile}
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ actions:
151
151
[ -f /var/lib/mysql/grastate.dat ] && rm -f /var/lib/mysql/grastate.dat
152
152
[ -f /var/lib/mysql/gvwstate.dat ] && rm -f /var/lib/mysql/gvwstate.dat
153
153
[ -f /var/lib/mysql/galera.cache ] && rm -f /var/lib/mysql/galera.cache
154
+ [ -f /var/lib/mysql/tc.log ] && rm -f /var/lib/mysql/tc.log
154
155
pgrep mysql 1>/dev/null && pkill -9 mysql;
155
156
pgrep mariadb 1>/dev/null && pkill -9 mariadb || true
156
157
user: root
Original file line number Diff line number Diff line change
1
+ globals :
2
+ db_cluster_path : https://github.com/raw/jelastic-jps/mysql-cluster/v3.0.0
3
+
1
4
actions :
2
5
setupOrchestrator :
3
6
- log : Orchestrator configuration
@@ -11,7 +14,7 @@ actions:
11
14
mysql -h 127.0.0.1 -P3360 -uroot -e "SET PASSWORD FOR 'admin'@'127.0.0.1' = PASSWORD('${globals.ORCH_PASS}');"
12
15
fi
13
16
mysql -h 127.0.0.1 -P3360 -uroot -e "FLUSH PRIVILEGES;"
14
- wget ${baseUrl }/configs/orchestrator.conf.json -O /etc/orchestrator.conf.json &>> /var/log/run.log
17
+ wget ${globals.db_cluster_path }/configs/orchestrator.conf.json -O /etc/orchestrator.conf.json &>> /var/log/run.log
15
18
sed -i -e 's|orc_client_user|${globals.DB_USER}|g' /etc/orchestrator.conf.json
16
19
sed -i -e 's|orc_client_password|${globals.DB_PASS}|g' /etc/orchestrator.conf.json
17
20
sed -i -e 's|orc_server_user|admin|g' /etc/orchestrator.conf.json
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ actions:
132
132
[ -f /var/lib/mysql/grastate.dat ] && rm -f /var/lib/mysql/grastate.dat
133
133
[ -f /var/lib/mysql/gvwstate.dat ] && rm -f /var/lib/mysql/gvwstate.dat
134
134
[ -f /var/lib/mysql/galera.cache ] && rm -f /var/lib/mysql/galera.cache
135
+ [ -f /var/lib/mysql/tc.log ] && rm -f /var/lib/mysql/tc.log
135
136
pgrep mysql 1>/dev/null && pkill -9 mysql;
136
137
pgrep mariadb 1>/dev/null && pkill -9 mariadb || true
137
138
user: root
You can’t perform that action at this time.
0 commit comments