murmur: multiline welcome text and channels' config as a variable
parent
26fa2cb9ad
commit
bc0cb0139f
|
@ -98,6 +98,48 @@ murmur_client_certificate_required: no
|
||||||
murmur_send_server_version: yes
|
murmur_send_server_version: yes
|
||||||
murmur_ice_warn_unknown_properties: yes
|
murmur_ice_warn_unknown_properties: yes
|
||||||
murmur_ice_message_size_max: 65536
|
murmur_ice_message_size_max: 65536
|
||||||
|
murmur_channels:
|
||||||
|
- name: Root
|
||||||
|
description: Root channel. No entry.
|
||||||
|
groups:
|
||||||
|
admin:
|
||||||
|
inherit: true
|
||||||
|
inheritable: true
|
||||||
|
permissions:
|
||||||
|
- group: all
|
||||||
|
deny:
|
||||||
|
- Enter
|
||||||
|
recursive: false
|
||||||
|
enabled: true
|
||||||
|
- group: all
|
||||||
|
allow:
|
||||||
|
- RegisterSelf
|
||||||
|
- MakeTempChannel
|
||||||
|
- group: admin
|
||||||
|
allow:
|
||||||
|
- MuteDeafen
|
||||||
|
- Move
|
||||||
|
- Kick
|
||||||
|
- Ban
|
||||||
|
- Register
|
||||||
|
- name: Welcome
|
||||||
|
parent: Root
|
||||||
|
description: Welcome channel
|
||||||
|
position: 0
|
||||||
|
isdefault: true
|
||||||
|
- name: Silent
|
||||||
|
parent: Root
|
||||||
|
description: Silent channel
|
||||||
|
position: 1
|
||||||
|
permissions:
|
||||||
|
- group: all
|
||||||
|
deny:
|
||||||
|
- Speak
|
||||||
|
- MakeTempChannel
|
||||||
|
enabled: true
|
||||||
|
- group: admin
|
||||||
|
allow:
|
||||||
|
- MakeTempChannel
|
||||||
|
|
||||||
umurmur_enabled: no
|
umurmur_enabled: no
|
||||||
umurmur_domain: "{{ mumble_domain }}"
|
umurmur_domain: "{{ mumble_domain }}"
|
||||||
|
@ -105,14 +147,14 @@ umurmur_max_bandwidth: 48000
|
||||||
umurmur_max_users: 100
|
umurmur_max_users: 100
|
||||||
umurmur_server_password: ""
|
umurmur_server_password: ""
|
||||||
umurmur_channels:
|
umurmur_channels:
|
||||||
- name: Root
|
- name: Root
|
||||||
description: Root channel. No entry.
|
description: Root channel. No entry.
|
||||||
noenter: yes
|
noenter: yes
|
||||||
- name: Welcome
|
- name: Welcome
|
||||||
parent: Root
|
parent: Root
|
||||||
description: Welcome channel
|
description: Welcome channel
|
||||||
position: 0
|
position: 0
|
||||||
- name: Silent
|
- name: Silent
|
||||||
parent: Root
|
parent: Root
|
||||||
description: Silent channel
|
description: Silent channel
|
||||||
silent: yes
|
silent: yes
|
||||||
|
@ -120,7 +162,7 @@ umurmur_channels:
|
||||||
umurmur_default_channel: Welcome
|
umurmur_default_channel: Welcome
|
||||||
umurmur_welcome_text: "Welcome on the {{ inventory_hostname }} Mumble server!"
|
umurmur_welcome_text: "Welcome on the {{ inventory_hostname }} Mumble server!"
|
||||||
umurmur_channel_links:
|
umurmur_channel_links:
|
||||||
- source: "{{ umurmur_default_channel }}"
|
- source: "{{ umurmur_default_channel }}"
|
||||||
destinations: >-
|
destinations: >-
|
||||||
{{ umurmur_channels
|
{{ umurmur_channels
|
||||||
| selectattr('parent', 'defined')
|
| selectattr('parent', 'defined')
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
|
|
||||||
- name: Copy mice config
|
- name: Copy mice config
|
||||||
copy:
|
copy:
|
||||||
src: murmur/mice.yml
|
content: "{{ murmur_channels | to_nice_yaml(indent=2) }}"
|
||||||
dest: "{{ murmur_ice_config_path }}"
|
dest: "{{ murmur_ice_config_path }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -140,7 +140,11 @@ pidfile={{ murmur_pid_file | to_json }}
|
||||||
; Welcome message sent to clients when they connect.
|
; Welcome message sent to clients when they connect.
|
||||||
; If the welcome message is set to an empty string,
|
; If the welcome message is set to an empty string,
|
||||||
; no welcome message will be sent to clients.
|
; no welcome message will be sent to clients.
|
||||||
|
{% if murmur_welcome_text is string %}
|
||||||
welcometext={{ murmur_welcome_text | to_json }}
|
welcometext={{ murmur_welcome_text | to_json }}
|
||||||
|
{% else %}
|
||||||
|
welcometext = {{ murmur_welcome_text | join('<br />') | to_json }};
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
; Port to bind TCP and UDP sockets to.
|
; Port to bind TCP and UDP sockets to.
|
||||||
port={{ murmur_port }}
|
port={{ murmur_port }}
|
||||||
|
|
Loading…
Reference in New Issue