Unhardcode wait_timeout directive
Depends-On: https://gerrit.mcp.mirantis.com/c/salt-formulas/galera/+/79149
Change-Id: I25925d93ceed187d57c96c099bf9f46855cdddc3
Related-Prod: PROD-35705
diff --git a/galera/files/my.cnf b/galera/files/my.cnf
index 5cab02a..481ff12 100644
--- a/galera/files/my.cnf
+++ b/galera/files/my.cnf
@@ -41,7 +41,7 @@
socket = /var/run/mysqld/mysqld.sock
myisam_sort_buffer_size=64M
-wait_timeout=1800
+wait_timeout={{ service.get('wait_timeout', 1800) }}
open_files_limit=102400
table_open_cache={{ service.get('table_open_cache', 10000) }}
tmp_table_size={{ service.get('tmp_table_size', 16777216) }}
diff --git a/galera/files/my.cnf.init b/galera/files/my.cnf.init
index 514f6e5..6d03811 100644
--- a/galera/files/my.cnf.init
+++ b/galera/files/my.cnf.init
@@ -26,7 +26,7 @@
skip-name-resolve
myisam_sort_buffer_size=64M
-wait_timeout=1800
+wait_timeout={{ service.get('wait_timeout', 1800) }}
open_files_limit=102400
table_open_cache=10000
key_buffer_size=64M