mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 23:21:27 -07:00
Change timeout from 10 to 30 seconds to let mysql/mariadb restart
This commit is contained in:
parent
2254e72d6b
commit
454778406d
2 changed files with 6 additions and 6 deletions
6
Makefile
6
Makefile
|
@ -40,11 +40,11 @@ test-integration:
|
|||
podman exec replica2 bash -c 'echo -e [mysqld]\\nserver-id=3\\nlog-bin=/var/lib/mysql/replica2-bin > /etc/mysql/conf.d/replication.cnf'
|
||||
# Don't restart a container unless it is healthy
|
||||
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||
podman restart primary
|
||||
podman restart -t 30 primary
|
||||
while ! podman healthcheck run replica1 && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||
podman restart replica1
|
||||
podman restart -t 30 replica1
|
||||
while ! podman healthcheck run replica2 && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||
podman restart replica2
|
||||
podman restart -t 30 replica2
|
||||
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||
mkdir -p .venv/$(ansible)
|
||||
python -m venv .venv/$(ansible)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue