Fixed hosts file and removed the is_mysql_running hook on startcluster
This commit is contained in:
7
hosts
7
hosts
@@ -5,11 +5,10 @@ webhostname
|
|||||||
woker1
|
woker1
|
||||||
|
|
||||||
[db]
|
[db]
|
||||||
db0 db1-hostname server_id=1
|
db1-hostname
|
||||||
db1 db2-hostname server_id=2
|
db2-hostname
|
||||||
db2 db3-hostname server_id=3
|
db3-hostname
|
||||||
|
|
||||||
[proxy]
|
[proxy]
|
||||||
haproxy-hostname
|
haproxy-hostname
|
||||||
|
|
||||||
[proxy-internal]
|
|
||||||
|
|||||||
@@ -2,11 +2,6 @@
|
|||||||
# This starts the galera cluster
|
# This starts the galera cluster
|
||||||
|
|
||||||
# Check if mysql is running
|
# Check if mysql is running
|
||||||
- name: is mysql running?
|
|
||||||
action: shell service mysql status
|
|
||||||
register: is_mysql_running
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: bootstrap by starting mysql with new cluster
|
- name: bootstrap by starting mysql with new cluster
|
||||||
action: shell service mysql start --wsrep-new-cluster
|
action: shell service mysql start --wsrep-new-cluster
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user