aboutsummaryrefslogtreecommitdiffstats
path: root/templates/database/mysqlchk.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/database/mysqlchk.erb')
-rw-r--r--templates/database/mysqlchk.erb23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/database/mysqlchk.erb b/templates/database/mysqlchk.erb
new file mode 100644
index 0000000..f9fea1d
--- /dev/null
+++ b/templates/database/mysqlchk.erb
@@ -0,0 +1,23 @@
+# Managed by puppet
+#
+# default: on
+# description: mysqlchk
+service mysqlchk
+{
+# this is a config for xinetd, place it in /etc/xinetd.d/
+ disable = no
+ flags = REUSE
+ socket_type = stream
+ port = 9200
+ wait = no
+ user = nobody
+ server = /usr/bin/clustercheck
+ log_on_failure += USERID
+ log_on_success =
+ #FIXME(sbadia) Security: Restrict this parameter to HAProxy pool.
+ only_from = 0.0.0.0/0
+ bind = <%= @galera_clustercheck_ipaddress %>
+ # recommended to put the IPs that need
+ # to connect exclusively (security purposes)
+ per_source = UNLIMITED
+}