Restart mysql when package is installed
When running galera_server role with galera_upgrade=true it uninstalls mariadb and installs again. In some distros, like CentOS, mariadb don't start automatically after installation, so upgrade fails. This patch adds handler on packsage installation, which will be triggered when package state is changed. Change-Id: I23811cfaf23007c5da1860e78397be380d67403b Related-bug: 1628720
This commit is contained in:
parent
52813695f6
commit
efc965f00f
@ -88,6 +88,10 @@
|
||||
until: install_remote_apt_packages is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
notify:
|
||||
- Manage LB
|
||||
- Restart all mysql
|
||||
|
||||
|
||||
- name: Remove policy-rc now that the package install is complete
|
||||
file:
|
||||
|
@ -25,6 +25,9 @@
|
||||
until: install_remote_packages is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
notify:
|
||||
- Manage LB
|
||||
- Restart all mysql
|
||||
|
||||
- name: Ensure mysql config directories exists
|
||||
file:
|
||||
|
@ -138,3 +138,6 @@
|
||||
until: install_remote_packages is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
notify:
|
||||
- Manage LB
|
||||
- Restart all mysql
|
||||
|
@ -92,3 +92,6 @@
|
||||
until: install_remote_packages is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
notify:
|
||||
- Manage LB
|
||||
- Restart all mysql
|
||||
|
Loading…
x
Reference in New Issue
Block a user