[feat] Add a port check to the mysql state

This commit is contained in:
William Wernert
2020-04-17 20:57:22 -04:00
parent 3ef3c157f3
commit 068672ea12

View File

@@ -85,4 +85,9 @@ so-mysql:
- /opt/so/log/mysql:/var/log/mysql:rw - /opt/so/log/mysql:/var/log/mysql:rw
- watch: - watch:
- /opt/so/conf/mysql/etc - /opt/so/conf/mysql/etc
cmd.run:
- name: until nc -z localhost 3306; do sleep 1; done
- timeout: 10
- onchanges:
- docker_container: so-mysql
{% endif %} {% endif %}