From 372d53963c0be306d8e03028a2fae657633e930b Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Thu, 22 Oct 2026 23:30:23 +0300 Subject: feat: add umurmur --- roles/umurmur/templates/umurmurd.conf.j2 | 73 ++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 roles/umurmur/templates/umurmurd.conf.j2 (limited to 'roles/umurmur/templates') diff --git a/roles/umurmur/templates/umurmurd.conf.j2 b/roles/umurmur/templates/umurmurd.conf.j2 new file mode 100644 index 0000000..9e8f8c6 --- /dev/null +++ b/roles/umurmur/templates/umurmurd.conf.j2 @@ -0,0 +1,73 @@ +# {{ ansible_managed }} +{# + This configuration is based on the official example + configuration. More information can be found at + http://code.google.com/p/umurmur/wiki/Configuring02x +#} + +max_bandwidth = {{ max_bandwidth | default(48000) | int }}; +welcometext = "{{ welcometext | default('Welcome to uMurmur!') }}"; +certificate = "{{ certificate | default('') }}"; +private_key = "{{ private_key | default('') }}"; +password = "{{ password | default('') }}"; +admin_password = "{{ admin_password | default('') }}"; +max_users = {{ max_users | default(10) | int }}; + +bindport = {{ bindport | default(64738) | int }}; +bindaddr = "{{ bindaddr | default('0.0.0.0') }}"; + +{# + Specify this for privilege dropping. If username is specified but + not the groupname, the user's login group is used. +#} +username = "{{ username | default('umurmur') }}"; +groupname = "{{ groupname | default('umurmur') }}"; + +logfile = "{{ logfile | default('/var/log/umurmurd.log') }}"; + +enable_ban = {{ enable_ban | default(false) | lower }}; +sync_banfile = {{ sync_banfile | default(false) | lower }}; +ban_length = {{ ban_length | default(0) | int }}; +banfile = "{{ banfile | default('') }}"; + +channels = ( +{% for channel in channels %} + { + name = "{{ channel.name }}"; + parent = "{{ channel.parent | default('') }}"; +{% if channel.noenter is defined %} + noenter = {{ channel.noenter | lower }}; +{% endif %} +{% if channel.password is defined and channel.password %} + password = "{{ channel.password }}"; +{% endif %} +{% if channel.description is defined and channel.description %} + description = "{{ channel.description }}"; +{% endif %} +{% if channel.silent is defined %} + silent = {{ channel.silent | lower }}; +{% endif %} +{% if channel.position is defined %} + position = {{ channel.position | int }}; +{% endif %} + }{%- if not loop.last -%},{%- endif %} + +{% endfor %} +); + +{% if channel_links is defined and channel_links %} +channel_links = ( +{% for link in channel_links %} + { + source = "{{ link.source }}"; + destination = "{{ link.destination }}"; + }{%- if not loop.last -%}, +{%- endif %} + +{% endfor %} +); +{% endif %} + +{% if default_channel is defined and default_channel %} +default_channel = "{{ default_channel }}"; +{% endif %} -- cgit v1.3.1