aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLex Rivera <me@lex.io>2018-09-12 18:33:37 +0300
committerTharre <tharre3@gmail.com>2018-09-13 19:05:49 +0200
commit874b45e9f6133e6b209ceafd1920de2e879b14ee (patch)
treef240e9756e1cd28a2fbb7d25901a515142ac02f4 /templates
parentba918de14d87237f91024649f8031a13dd540fe3 (diff)
downloadansible-teamspeak-874b45e9f6133e6b209ceafd1920de2e879b14ee.tar.gz
ansible-teamspeak-874b45e9f6133e6b209ceafd1920de2e879b14ee.tar.xz
ansible-teamspeak-874b45e9f6133e6b209ceafd1920de2e879b14ee.zip
add support for ts3db_mariadb plugin
Diffstat (limited to 'templates')
-rw-r--r--templates/ts3db_mariadb.ini.j26
-rw-r--r--templates/ts3server.ini.j28
2 files changed, 14 insertions, 0 deletions
diff --git a/templates/ts3db_mariadb.ini.j2 b/templates/ts3db_mariadb.ini.j2
new file mode 100644
index 0000000..4755b65
--- /dev/null
+++ b/templates/ts3db_mariadb.ini.j2
@@ -0,0 +1,6 @@
+[config]
+host={{ teamspeak_db.host }}
+port={{ teamspeak_db.port }}
+username={{ teamspeak_db.username }}
+password={{ teamspeak_db.password }}
+database={{ teamspeak_db.database }}
diff --git a/templates/ts3server.ini.j2 b/templates/ts3server.ini.j2
index 0f434fa..2d5dcd8 100644
--- a/templates/ts3server.ini.j2
+++ b/templates/ts3server.ini.j2
@@ -13,3 +13,11 @@ licensepath={{ teamspeak_licensepath }}/
{% if teamspeak_machine_id is not none %}
machine_id={{ teamspeak_machine_id }}
{% endif %}
+
+{% if teamspeak_db.plugin == 'ts3db_mariadb' %}
+dbplugin={{ teamspeak_db.plugin }}
+dbpluginparameter=ts3db_mariadb.ini
+dbsqlpath=sql/
+dbsqlcreatepath=create_mysql/
+dbconnections=10
+{% endif %}