aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
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 %}