From 874b45e9f6133e6b209ceafd1920de2e879b14ee Mon Sep 17 00:00:00 2001 From: Lex Rivera Date: Wed, 12 Sep 2018 18:33:37 +0300 Subject: add support for ts3db_mariadb plugin --- templates/ts3db_mariadb.ini.j2 | 6 ++++++ templates/ts3server.ini.j2 | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 templates/ts3db_mariadb.ini.j2 (limited to 'templates') 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 %} -- cgit v1.2.3-70-g09d2