-
Notifications
You must be signed in to change notification settings - Fork 1
/
site.yaml
314 lines (298 loc) · 11 KB
/
site.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
- hosts: bbb
handlers:
- name: reload nginx
service:
name: nginx
state: reloaded
tasks:
- name: install python dependencies
package:
name: python-lxml
state: present
- name: download bbb-install script
get_url:
url: https://ubuntu.bigbluebutton.org/bbb-install.sh
dest: ~/bbb-install.sh
# es fehlt der Abschnitt "TURN-Settings anpassen" aus unserer Doku
# hier nun "Anpassungen für Datensparsamkeit"
- name: disable recordings and logging
lineinfile:
path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
line: '{{item.key}}={{item.value}}'
regexp: '^(\s+)?{{item.key}}='
loop:
- { key: disableRecordingDefault, value: 'true' }
- { key: breakoutRoomsRecord, value: 'false' }
- { key: appLogLevel, value: Error }
- name: logfile retention
lineinfile:
path: /etc/cron.daily/bigbluebutton
line: '{{item.key}}={{item.value}}'
regexp: '^(\s+)?{{item.key}}='
loop:
- { key: history, value: 0 }
- { key: unrecorded_days, value: 1 }
- { key: published_days, value: 1 }
- { key: log_history, value: 1 }
- name: logging in /usr/share/bbb-web/WEB-INF/classes/logback.xml
xml:
path: /usr/share/bbb-web/WEB-INF/classes/logback.xml
xpath: '{{item}}'
attribute: level
value: ERROR
loop:
- /configuration/logger
- /configuration/root
- name: logging etc/nginx/sites-available/bigbluebutton and etc/nginx/nginx.conf
lineinfile:
path: '{{ item }}'
line: '\1access_log off;'
regexp: '^((\s+)?)access_log '
backrefs: yes
loop:
- /etc/nginx/nginx.conf
- /etc/nginx/sites-available/bigbluebutton
notify: reload nginx
tags: nginx
# bbb-23
# - name: disable version in 404 pages /etc/nginx/nginx.conf
# copy:
# dest: '/etc/nginx/conf.d/disable-server-version.conf'
# content: 'server_tokens off;'
# notify: reload nginx
# tags: nginx
- name: reduce logging etc/bbb-*-akka|red5 logback.xml (1)
xml:
path: '{{ item[0] }}'
xpath: '{{ item[1] }}'
attribute: level
value: ERROR
vars:
files:
# bbb 23
# - /etc/bbb-transcode-akka/logback.xml
- /etc/bbb-apps-akka/logback.xml
- /etc/bbb-fsesl-akka/logback.xml
# bbb 23 - /etc/red5/logback.xml
xpaths:
- /configuration/logger
- /configuration/root
loop: '{{ files | product(xpaths) | list }}'
- name: reduce logging etc/bbb-*-akka|red5 logback.xml (2)
xml:
path: '{{ item[0] }}'
xpath: '{{ item[1] }}'
state: absent
vars:
files:
# bbb 23 - /etc/bbb-transcode-akka/logback.xml
- /etc/bbb-apps-akka/logback.xml
- /etc/bbb-fsesl-akka/logback.xml
# bbb 23 - /etc/red5/logback.xml
xpaths:
- /configuration/logger/level
- /configuration/root/level
loop: '{{ files | product(xpaths) | list }}'
- name: reduce logging */application.conf (1)
lineinfile:
path: '{{ item }}'
line: '\1loglevel = "ERROR"'
regexp: '^((\s+)?)loglevel = '
backrefs: yes
loop:
# bbb 23 - /etc/bbb-transcode-akka/application.conf
- /etc/bbb-apps-akka/application.conf
- /etc/bbb-fsesl-akka/application.conf
- /usr/share/bbb-web/WEB-INF/classes/application.conf
- name: reduce logging */application.conf (2)
lineinfile:
path: '{{ item }}'
line: '\1stdout-loglevel = "ERROR"'
regexp: '^((\s+)?)stdout-loglevel = '
backrefs: yes
loop:
# bbb 23 - /etc/bbb-transcode-akka/application.conf
- /etc/bbb-apps-akka/application.conf
- /etc/bbb-fsesl-akka/application.conf
- /usr/share/bbb-web/WEB-INF/classes/application.conf
- name: reduce logging usr/share/bbb-web/WEB-INF/classes/application.conf (1)
lineinfile:
path: '{{ item }}'
line: '\1autoreceive = off'
regexp: '^((\s+)?)autoreceive = '
backrefs: yes
loop:
- /usr/share/bbb-web/WEB-INF/classes/application.conf
- name: reduce logging usr/share/bbb-web/WEB-INF/classes/application.conf (2)
lineinfile:
path: '{{ item }}'
line: '\1lifecycle = off'
regexp: '^((\s+)?)lifecycle = '
backrefs: yes
loop:
- /usr/share/bbb-web/WEB-INF/classes/application.conf
- name: reduce logging kurento-media-server.service
lineinfile:
path: /usr/lib/systemd/system/kurento-media-server.service
line: 'ExecStart=/usr/bin/kurento-media-server --gst-debug-level=3 --gst-debug="3,Kurento*:3,kms*:3,KurentoWebSocketTransport:3"'
regexp: '^((\s+)?)ExecStart='
backrefs: yes
- name: reduce logging /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml
lineinfile:
path: /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml
line: ' level: warn'
regexp: '^ level: '
# BBB 2.3 RC1
# - name: reduce logging in /opt/freeswitch/conf/autoload_configs/unimrcp.conf.xml
# xml:
# path: /opt/freeswitch/conf/autoload_configs/unimrcp.conf.xml
# xpath: /configuration/settings/param[@name='log-level']
# attribute: value
# value: WARNING
# tags:
# - freeswitch
- name: disable boring sounds
xml:
path: /opt/freeswitch/etc/freeswitch/autoload_configs/conference.conf.xml
xpath: "/configuration/profiles/profile[@name='{{ item[0] }}']/param[@name='{{ item[1] }}']"
state: absent
backup: true
vars:
profiles: [default, wideband, ultrawideband, cdquality, video-mcu-stereo, sla]
sounds: [muted-sound, unmuted-sound, alone-sound, moh-sound]
loop: "{{profiles | product(sounds) | list}}"
tags: sound
- name: change welcome message
ini_file:
path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
section: null
option: '{{ item.option }}'
value: '{{ item.value }}'
loop:
- option: defaultWelcomeMessage
value: >
Willkommen!<br><br>Der KalkSpace freut sich, dass du hier bist.
Bitte beachte, dass auch hier unser
<a href="https://discuss.kalk.space/t/code-of-conduct/262">Code of Conduct</a> gilt.
<br><br> Verwende Headset oder Kopfhörer, um Hintergrundgeräusche zu reduzieren.
- option: defaultWelcomeMessageFooter
value: >
Um an diesem Treffen per Telefon teilzunehmen, wähle<br>
<strong>%%DIALNUM%%</strong>.<br> Gib dann <strong>%%CONFNUM%%</strong> als Konferenz-PIN ein.
Mit der 0 kannst du dich (ent-)muten.
tags: welcomeMessage
- name: edit meteor config
vars:
config_override:
public:
kurento:
cameraProfiles:
- id: low
name: Low quality
default: true
bitrate: 80
- id: medium
name: Medium quality
default: false
bitrate: 200
- id: high
name: High quality
default: false
bitrate: 500
block:
- name: read config file
slurp:
path: /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
register: meteor_config_raw
- name: extract config of meteor
set_fact:
meteor_config: "{{ meteor_config_raw['content'] | b64decode | from_yaml }}"
- name: update meteor confi
copy:
content: '{{ meteor_config | combine(config_override, recursive=true) | to_nice_yaml }}'
dest: /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
backup: yes
tags: meteor
- name: add webserver content
copy:
src: "files/{{item.source}}"
dest: "/var/www/bigbluebutton-default/assets/{{item.destination}}"
loop:
- source: default-presentation.pdf
destination: default.pdf
- source: landingpage.html
destination: index.html
- source: Anleitung_BBB_Kalkspace.pdf
destination: Anleitung_BBB_Kalkspace.pdf
tags: content
- name: disable greenlight-redirect
file:
state: absent
path: /usr/share/bigbluebutton/nginx/greenlight-redirect.nginx
notify: reload nginx
tags: content
- name: configure dial-in
copy:
src: "files/sipgate.xml"
dest: "/opt/freeswitch/etc/freeswitch/dialplan/public/sipgate.xml"
tags: dial-in
# - name: configure nginx for metrics
# copy:
# content: |
# # BigBlueButton Exporter (metrics)
# location /metrics/ {
# auth_basic "BigBlueButton Exporter";
# auth_basic_user_file /etc/nginx/.htpasswd;
# proxy_pass http://127.0.0.1:9688/;
# include proxy_params;
# }
# tags: metrics
- name: add de-gendered DU german language file
copy:
src: "files/de_cool.json"
dest: "{{item}}"
backup: true
loop:
- /usr/share/meteor/bundle/programs/web.browser/app/locales/de.json
- /usr/share/meteor/bundle/programs/web.browser.legacy/app/locales/de.json
tags: language
- name: setup background images
block:
- name: copy images to server
copy:
src: "files/backgrounds/"
dest: "/usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds/"
- name: gather images
find:
paths: "/usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds/"
file_type: file
register: images
- name: create thumbnails on server
command:
chdir: "/usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds/"
creates: "/usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds/thumbnails/{{item.path|basename}}"
cmd: convert {{item.path|basename}} -resize 50x50^ -gravity Center -extent 50x50 "thumbnails/{{item.path|basename}}"
loop: "{{images.files}}"
loop_control:
label: "{{item.path|basename}}"
tags: backgrounds
- name: disable learning dashboard
ini_file:
path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
section: null
option: '{{ item.option }}'
value: '{{ item.value }}'
loop:
- option: learningDashboardEnabled
value: "false"
tags: dashboard
- name: custom layout as default
ini_file:
path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
section: null
option: '{{ item.option }}'
value: '{{ item.value }}'
loop:
- option: defaultMeetingLayout
value: "CUSTOM_LAYOUT"
tags: layout