aboutsummaryrefslogtreecommitdiff
path: root/roles/umurmur/templates
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-10-22 20:30:23 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-10-22 20:30:23 +0000
commit372d53963c0be306d8e03028a2fae657633e930b (patch)
tree2347c2e439678acfd66c010aa3d3af72dabe3894 /roles/umurmur/templates
parentfeat: add cgit (diff)
downloadinfra-master.tar.gz
feat: add umurmurHEADmaster
Diffstat (limited to 'roles/umurmur/templates')
-rw-r--r--roles/umurmur/templates/umurmurd.conf.j273
1 files changed, 73 insertions, 0 deletions
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 @@
1# {{ ansible_managed }}
2{#
3 This configuration is based on the official example
4 configuration. More information can be found at
5 http://code.google.com/p/umurmur/wiki/Configuring02x
6#}
7
8max_bandwidth = {{ max_bandwidth | default(48000) | int }};
9welcometext = "{{ welcometext | default('Welcome to uMurmur!') }}";
10certificate = "{{ certificate | default('') }}";
11private_key = "{{ private_key | default('') }}";
12password = "{{ password | default('') }}";
13admin_password = "{{ admin_password | default('') }}";
14max_users = {{ max_users | default(10) | int }};
15
16bindport = {{ bindport | default(64738) | int }};
17bindaddr = "{{ bindaddr | default('0.0.0.0') }}";
18
19{#
20 Specify this for privilege dropping. If username is specified but
21 not the groupname, the user's login group is used.
22#}
23username = "{{ username | default('umurmur') }}";
24groupname = "{{ groupname | default('umurmur') }}";
25
26logfile = "{{ logfile | default('/var/log/umurmurd.log') }}";
27
28enable_ban = {{ enable_ban | default(false) | lower }};
29sync_banfile = {{ sync_banfile | default(false) | lower }};
30ban_length = {{ ban_length | default(0) | int }};
31banfile = "{{ banfile | default('') }}";
32
33channels = (
34{% for channel in channels %}
35 {
36 name = "{{ channel.name }}";
37 parent = "{{ channel.parent | default('') }}";
38{% if channel.noenter is defined %}
39 noenter = {{ channel.noenter | lower }};
40{% endif %}
41{% if channel.password is defined and channel.password %}
42 password = "{{ channel.password }}";
43{% endif %}
44{% if channel.description is defined and channel.description %}
45 description = "{{ channel.description }}";
46{% endif %}
47{% if channel.silent is defined %}
48 silent = {{ channel.silent | lower }};
49{% endif %}
50{% if channel.position is defined %}
51 position = {{ channel.position | int }};
52{% endif %}
53 }{%- if not loop.last -%},{%- endif %}
54
55{% endfor %}
56);
57
58{% if channel_links is defined and channel_links %}
59channel_links = (
60{% for link in channel_links %}
61 {
62 source = "{{ link.source }}";
63 destination = "{{ link.destination }}";
64 }{%- if not loop.last -%},
65{%- endif %}
66
67{% endfor %}
68);
69{% endif %}
70
71{% if default_channel is defined and default_channel %}
72default_channel = "{{ default_channel }}";
73{% endif %}