Enable the xinetd service for reboot

If the Galera container is rebooted, the xinetd service should be
started. Otherwise the haproxy health check will fail and haproxy will
not forward database connections.

Change-Id: Iefa7b72ea1fa6743fb8486af663512c2ffe1c31d
This commit is contained in:
Nicolas Bock 2018-09-26 12:19:57 -06:00
parent ef5d89b95d
commit 9fee5107c2
No known key found for this signature in database
GPG Key ID: 9E90013DEF7F5B7B
2 changed files with 10 additions and 0 deletions

View File

@ -94,3 +94,4 @@
service:
name: xinetd
state: restarted
enabled: true

View File

@ -181,6 +181,15 @@
dest: "/usr/local/bin/clustercheck"
mode: "0755"
# TODO: (nicolasbock) This task can be removed in T but is necessary
# for S and earlier because deployments prior to this change will not
# have the xinetd service enabled because the handler task runs only
# for new deployments.
- name: Enable xinetd service
service:
name: xinetd
enabled: yes
- name: Create mysqlchk config
template:
src: "mysqlchk.j2"