Skip to content

Commit 5e39325

Browse files
authored
Merge pull request #357 from virtUOS/remove-deprecated
Implement disabledFeatures and remove old flags
2 parents a8c2aea + d6d7737 commit 5e39325

File tree

5 files changed

+41
-8
lines changed

5 files changed

+41
-8
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Also check [Before you install](https://docs.bigbluebutton.org/administration/in
146146
| | `bbb_office_to_pdf_max_concurrent_conversions` | Max concurrent of conversion script execution | `4` | |
147147
| | `bbb_freeswitch_muted_sound` | Enable muted sound (`you are now muted`) | `true` | |
148148
| | `bbb_freeswitch_unmuted_sound` | Enable unmuted sound (`you are now unmuted`) | `true` | |
149-
| | `bbb_breakout_rooms_enabled` | Enable or disable breakout rooms | `true` | |
149+
| Deprecated | `bbb_breakout_rooms_enabled` | Enable or disable breakout rooms | `true` | use `bbb_disabled_features` instead |
150150
| | `bbb_breakout_rooms_record` | Enable or disable recording in breakout rooms | `false` | |
151151
| | `bbb_breakout_rooms_privatechat_enabled` | Enable or disable private chat in breakout rooms | `true` | |
152152
| | `bbb_docker_compose_version` | Set [docker-compose python package version](https://pypi.org/project/docker/#history) | see `defaults/main.yml` | Sets the version of the docker-compose python package |
@@ -165,8 +165,9 @@ Also check [Before you install](https://docs.bigbluebutton.org/administration/in
165165
| | `bbb_end_when_delay_in_minutes` | | `1` | |
166166
| | `bbb_notify_recording_is_on` | | `false` | |
167167
| | `bbb_allow_reveal_of_bbb_version` | | `false` | |
168-
| | `bbb_learning_dashboard_enabled` | Enable `true` / Disable `false` the [Learning Dashboard](https://docs.bigbluebutton.org/2.4/new.html#learning-dashboard) | `true` | |
168+
| Deprecated | `bbb_learning_dashboard_enabled` | Enable `true` / Disable `false` the [Learning Dashboard](https://docs.bigbluebutton.org/2.4/new.html#learning-dashboard) | `true` | use `bbb_disabled_features` instead|
169169
| `bbb_default_meeting_layout` | Default Meeting Layout. Default Meeting Layout. Valid values are CUSTOM_LAYOUT, SMART_LAYOUT, PRESENTATION_FOCUS, VIDEO_FOCUS | `SMART_LAYOUT` | |
170+
| | `bbb_disabled_features` | List of features to disable | `[]` | See https://docs.bigbluebutton.org/development/api#create for options |
170171

171172
### METEOR
172173

defaults/main.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ bbb_num_file_processor_threads: 2
160160
bbb_office_to_pdf_conversion_timeout: 60
161161
bbb_office_to_pdf_max_concurrent_conversions: 4
162162

163-
bbb_breakout_rooms_enabled: true
163+
bbb_breakout_rooms_enabled: true # deprecated as of 2.6
164164
bbb_breakout_rooms_record: false
165165
bbb_breakout_rooms_privatechat_enabled: true
166166

167167
bbb_user_inactivity_inspect_timer: 0
168168
bbb_user_inactivity_threshold: 30
169169
bbb_user_activity_sign_response_delay: 5
170-
bbb_learning_dashboard_enabled: true
170+
bbb_learning_dashboard_enabled: true # deprecated as of 2.6
171171
bbb_default_meeting_layout: SMART_LAYOUT
172172
bbb_webcams_only_for_moderator: false
173173
bbb_allow_mods_to_eject_cameras: false
@@ -179,6 +179,17 @@ bbb_end_when_delay_in_minutes: 1
179179
bbb_notify_recording_is_on: false
180180
bbb_allow_reveal_of_bbb_version: false
181181

182+
# List of features to disable
183+
# Available options:
184+
# chat, sharedNotes, polls, screenshare, externalVideos, presentation, downloadPresentationWithAnnotations
185+
# learningDashboard, layouts, captions, liveTranscription, virtualBackgrounds, customVirtualBackgrounds
186+
# breakoutRooms, importSharedNotesFromBreakoutRooms, importPresentationWithAnnotationsFromBreakoutRooms
187+
bbb_disabled_features: []
188+
189+
# the following variables are to ensure backwards compatibility with the deprecated feature flags
190+
bbb_disabled_features_deprecated: "{{ (['learningDashboard'] if bbb_learning_dashboard_enabled else []) + (['breakoutRooms'] if bbb_breakout_rooms_enabled else []) }}"
191+
bbb_disabled_features_combined: "{{ bbb_disabled_features | union(bbb_disabled_features_deprecated) }}"
192+
182193
bbb_use_default_logo: false
183194
bbb_default_logo_url: ${ bigbluebutton.web.serverURL }/images/{{ bbb_custom_logo_name | default('logo.png') }}
184195
# bbb_custom_logo: "logo.png"

tasks/checkvars.yml

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
msg: Please set a value for the bbb_proxy_name variable.
6161
failed_when: bbb_proxy_name is not defined
6262
when: bbb_proxy_host is defined
63+
- name: Checking bbb_disabled_features against allowed values
64+
assert:
65+
that: "{{ item in bbb_allowed_disabled_features }}"
66+
fail_msg: "Value {{ item }} is not in list of allowed values."
67+
loop: "{{ bbb_disabled_features }}"
68+
when: bbb_disabled_features
6369
rescue:
6470
- name: CHECK YOUR VARIABLES!
6571
debug:

templates/bbb-web/bbb-web.properties.j2

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ bigbluebutton.web.logoutURL={{ bbb_web_logouturl }}
2121
allowRequestsWithoutSession={{ bbb_allow_request_without_session | ternary('true', 'false') }}
2222
maxNumPages={{ bbb_max_num_pages }}
2323
maxFileSizeUpload={{ bbb_max_file_size_upload }}
24-
attendeesJoinViaHTML5Client=true
25-
moderatorsJoinViaHTML5Client=true
2624
defaultGuestPolicy={{ bbb_guestpolicy }}
2725
defaultWelcomeMessage={{ bbb_default_welcome_message }}
2826
beans.presentationService.defaultUploadedPresentation={{ bbb_default_presentation }}
@@ -34,14 +32,12 @@ numConversionThreads={{ bbb_num_conversion_threads }}
3432
numFileProcessorThreads={{ bbb_num_file_processor_threads }}
3533
officeToPdfConversionTimeout={{ bbb_office_to_pdf_conversion_timeout }}
3634
officeToPdfMaxConcurrentConversions={{ bbb_office_to_pdf_max_concurrent_conversions }}
37-
breakoutRoomsEnabled={{ bbb_breakout_rooms_enabled | ternary('true', 'false') }}
3835
breakoutRoomsRecord={{ bbb_breakout_rooms_record | ternary('true', 'false') }}
3936
breakoutRoomsPrivateChatEnabled={{ bbb_breakout_rooms_privatechat_enabled | ternary('true', 'false') }}
4037
userInactivityInspectTimerInMinutes={{ bbb_user_inactivity_inspect_timer }}
4138
userInactivityThresholdInMinutes={{ bbb_user_inactivity_threshold }}
4239
userActivitySignResponseDelayInMinutes={{ bbb_user_activity_sign_response_delay }}
4340
webcamsOnlyForModerator={{ bbb_webcams_only_for_moderator | ternary("true", "false") }}
44-
learningDashboardEnabled={{ bbb_learning_dashboard_enabled }}
4541
allowModsToEjectCameras={{ bbb_allow_mods_to_eject_cameras }}
4642
meetingCameraCap={{ bbb_meeting_camera_cap }}
4743
userCameraCap={{ bbb_user_camera_cap }}
@@ -50,6 +46,7 @@ endWhenNoModerator={{ bbb_end_when_no_moderator | ternary('true', 'false') }}
5046
endWhenNoModeratorDelayInMinutes={{ bbb_end_when_delay_in_minutes }}
5147
notifyRecordingIsOn={{ bbb_notify_recording_is_on | ternary('true', 'false') }}
5248
allowRevealOfBBBVersion={{ bbb_allow_reveal_of_bbb_version | ternary('true', 'false') }}
49+
disabledFeatures={{ bbb_disabled_features_combined | join(',') }}
5350

5451
# show a logo in top left corner
5552
useDefaultLogo={{ bbb_use_default_logo | ternary('true', 'false') }}

vars/main.yml

+18
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,21 @@ bbb_webhooks:
2626

2727
bbb_demos:
2828
- bbb-demo
29+
30+
bbb_allowed_disabled_features:
31+
- chat
32+
- sharedNotes
33+
- polls
34+
- screenshare
35+
- externalVideos
36+
- presentation
37+
- downloadPresentationWithAnnotations
38+
- learningDashboard
39+
- layouts
40+
- captions
41+
- liveTranscription
42+
- virtualBackgrounds
43+
- customVirtualBackgrounds
44+
- breakoutRooms
45+
- importSharedNotesFromBreakoutRooms
46+
- importPresentationWithAnnotationsFromBreakoutRooms

0 commit comments

Comments
 (0)