aboutsummaryrefslogtreecommitdiffstats
path: root/templates/ts3server.ini.j2
diff options
context:
space:
mode:
authorStefan Joosten <stefan@sjoosten.nl>2016-08-23 20:34:32 +0200
committerStefan Joosten <stefan@sjoosten.nl>2016-08-23 20:34:32 +0200
commitcf50f8c7d35497509d592dd309906503c8d994e5 (patch)
tree1080a8fc28755db9c099e1dd8cdafb3e4c5f5b93 /templates/ts3server.ini.j2
parent4088a3ec70d18f7174723609af79587cf65a0ed7 (diff)
downloadansible-teamspeak-cf50f8c7d35497509d592dd309906503c8d994e5.tar.gz
ansible-teamspeak-cf50f8c7d35497509d592dd309906503c8d994e5.tar.xz
ansible-teamspeak-cf50f8c7d35497509d592dd309906503c8d994e5.zip
Fix issue #1.
Rewrote parts of Egbert Verhage's patches. Thank you again for the work. This work adds the possibility to generate a INI-style configuration file for the TeamSpeak 3 Server. The scope is limited to creating and use of the INI config file, and ability to configure network settings, the machine ID and default creation of the first virtual server. More features can follow soon after.
Diffstat (limited to 'templates/ts3server.ini.j2')
-rw-r--r--templates/ts3server.ini.j226
1 files changed, 12 insertions, 14 deletions
diff --git a/templates/ts3server.ini.j2 b/templates/ts3server.ini.j2
index ee6d6f3..6c3f341 100644
--- a/templates/ts3server.ini.j2
+++ b/templates/ts3server.ini.j2
@@ -1,17 +1,15 @@
-machine_id={{ teamspeak_ini.machine_id }}
+{% if teamspeak_machine_id is not none %}
+machine_id={{ teamspeak_machine_id }}
+{% endif %}
-default_voice_port={{teamspeak_ini.voice.default_port}}
-voice_ip={{teamspeak_ini.voice.ip}}
+default_voice_port={{ teamspeak_network.voice.default_port }}
+voice_ip={{ teamspeak_network.voice.ip }}
+filetransfer_port={{ teamspeak_network.filetransfer.port }}
+filetransfer_ip={{ teamspeak_network.filetransfer.ip }}
+query_port={{ teamspeak_network.query.port }}
+query_ip={{ teamspeak_network.query.ip }}
-query_port={{teamspeak_ini.query.port}}
-query_ip={{teamspeak_ini.query.ip}}
+{% if teamspeak_create_default_virtualserver %}
+create_default_virtualserver=1
+{% endif %}
-filetransfer_port={{teamspeak_ini.filetransfer.port}}
-filetransfer_ip={{teamspeak_ini.filetransfer.ip}}
-
-dbplugin={{ teamspeak_ini.db_plugin }}
-dbpluginparameter={{ 'ts3db_mysql.ini' if teamspeak_ini.db_plugin == 'ts3db_mysql' else '' }}
-dbsqlpath=sql/
-dbsqlcreatepath={{ 'create_mysql/' if teamspeak_ini.db_plugin == 'ts3db_mysql' else 'create_sqlite/' }}
-logpath={{ teamspeak_ini.logpath }}
-logquerycommands={{ teamspeak_ini.logquerycommands }}