Browse Source

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
Nicolas Bock 6 months ago
parent
commit
9fee5107c2
No account linked to committer's email address
2 changed files with 10 additions and 0 deletions
  1. 1
    0
      handlers/main.yml
  2. 9
    0
      tasks/galera_post_install.yml

+ 1
- 0
handlers/main.yml View File

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

+ 9
- 0
tasks/galera_post_install.yml View File

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

Loading…
Cancel
Save