Implemented new appid for bbb

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-17 16:04:05 +02:00
parent ad449c3b6a
commit 9a8ef5e047
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
7 changed files with 41 additions and 24 deletions

View File

@ -67,7 +67,7 @@ ports:
simpleicons: 8044 simpleicons: 8044
libretranslate: 8055 libretranslate: 8055
pretix: 8056 pretix: 8056
bigbluebutton: 48087 # This port is predefined by bbb. @todo Try to change this to a 8XXX port web-app-bigbluebutton: 48087 # This port is predefined by bbb. @todo Try to change this to a 8XXX port
# Ports which are exposed to the World Wide Web # Ports which are exposed to the World Wide Web
public: public:
@ -78,8 +78,8 @@ ports:
ldaps: ldaps:
svc-db-openldap: 636 svc-db-openldap: 636
stun: stun:
bigbluebutton: 3478 # Not sure if it's right placed here or if it should be moved to localhost section web-app-bigbluebutton: 3478 # Not sure if it's right placed here or if it should be moved to localhost section
web-app-nextcloud: 3479 web-app-nextcloud: 3479
turn: turn:
bigbluebutton: 5349 # Not sure if it's right placed here or if it should be moved to localhost section web-app-bigbluebutton: 5349 # Not sure if it's right placed here or if it should be moved to localhost section
web-app-nextcloud: 5350 # Not used yet web-app-nextcloud: 5350 # Not used yet

View File

@ -94,7 +94,7 @@ defaults_networks:
subnet: 192.168.103.144/28 subnet: 192.168.103.144/28
# /24 Networks / 254 Usable Clients # /24 Networks / 254 Usable Clients
bigbluebutton: web-app-bigbluebutton:
subnet: 10.7.7.0/24 # This variable does not have an impact. It's just there for documentation reasons, because this network is used in bbb subnet: 10.7.7.0/24 # This variable does not have an impact. It's just there for documentation reasons, because this network is used in bbb
svc-db-postgres: svc-db-postgres:
subnet: 192.168.200.0/24 subnet: 192.168.200.0/24

View File

@ -59,7 +59,7 @@
- name: Wait for BigBlueButton - name: Wait for BigBlueButton
wait_for: wait_for:
host: "{{ domains | get_domain('bigbluebutton') }}" host: "{{ domains | get_domain('web-app-bigbluebutton') }}"
port: 80 port: 80
delay: 5 delay: 5
timeout: 600 timeout: 600
@ -68,11 +68,11 @@
command: command:
cmd: docker compose exec greenlight bundle exec rake admin:create cmd: docker compose exec greenlight bundle exec rake admin:create
chdir: "{{ docker_compose.directories.instance }}" chdir: "{{ docker_compose.directories.instance }}"
when: applications.bigbluebutton.setup | bool when: bigbluebutton_setup
ignore_errors: true ignore_errors: true
register: admin_creation_result register: admin_creation_result
- name: print admin user data - name: print admin user data
debug: debug:
msg: "{{ admin_creation_result.stdout }}" msg: "{{ admin_creation_result.stdout }}"
when: applications.bigbluebutton.setup | bool when: bigbluebutton_setup

View File

@ -1,11 +1,11 @@
application_id: "bigbluebutton" application_id: "web-app-bigbluebutton"
bbb_repository_directory: "{{ docker_compose.directories.services }}" bbb_repository_directory: "{{ docker_compose.directories.services }}"
docker_compose_file_origine: "{{ docker_compose.directories.services }}docker-compose.yml" docker_compose_file_origine: "{{ docker_compose.directories.services }}docker-compose.yml"
docker_compose_file_final: "{{ docker_compose.directories.instance }}docker-compose.yml" docker_compose_file_final: "{{ docker_compose.directories.instance }}docker-compose.yml"
# Database configuration # Database configuration
database_type: "postgres" database_type: "postgres"
database_password: "{{ applications.bigbluebutton.credentials.postgresql_secret }}" database_password: "{{ applications | get_app_conf(application_id, 'credentials.postgresql_secret') }}"
domain: "{{ domains | get_domain(application_id) }}" domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}" http_port: "{{ ports.localhost.http[application_id] }}"
@ -13,3 +13,10 @@ bbb_env_file_link: "{{ docker_compose.directories.instance }}.env"
bbb_env_file_origine: "{{ bbb_repository_directory }}.env" bbb_env_file_origine: "{{ bbb_repository_directory }}.env"
docker_compose_skipp_file_creation: true # Skipp creation of docker-compose.yml file docker_compose_skipp_file_creation: true # Skipp creation of docker-compose.yml file
# Setup
bigbluebutton_setup: "{{ applications | get_app_conf(application_id, 'setup') }}"
# Credentials
bigbluebutton_shared_secret: "{{ applications | get_app_conf(application_id, 'credentials.shared_secret') }}"
bigbluebutton_api_suffix: "{{ applications | get_app_conf(application_id, 'api_suffix') }}"

View File

@ -76,7 +76,7 @@ plugins:
enabled: true enabled: true
bbb: bbb:
# Nextcloud BigBlueButton integration: enables video conferencing using BigBlueButton (https://apps.nextcloud.com/apps/bbb) # Nextcloud BigBlueButton integration: enables video conferencing using BigBlueButton (https://apps.nextcloud.com/apps/bbb)
enabled: "{{ 'bigbluebutton' in group_names | lower }}" enabled: "{{ 'web-app-bigbluebutton' in group_names | lower }}"
#- bookmarks #- bookmarks
# # Nextcloud Bookmarks: manage and share your bookmarks easily (https://apps.nextcloud.com/apps/bookmarks) # # Nextcloud Bookmarks: manage and share your bookmarks easily (https://apps.nextcloud.com/apps/bookmarks)
# enabled: false # enabled: false

View File

@ -1,7 +1,7 @@
plugin_configuration: plugin_configuration:
- appid: "bbb" - appid: "bbb"
configkey: "api.secret" configkey: "api.secret"
configvalue: "{{ applications.bigbluebutton.credentials.shared_secret }}" configvalue: "{{ bigbluebutton_shared_secret }}"
- appid: "bbb" - appid: "bbb"
configkey: "api.url" configkey: "api.url"
configvalue: "{{ domains | get_url('bigbluebutton', web_protocol) }}{{applications.bigbluebutton.api_suffix}}" configvalue: "{{ domains | get_url('web-app-bigbluebutton', web_protocol) }}{{ bigbluebutton_api_suffix }}"

View File

@ -1,6 +1,16 @@
# This file is just used for internal configurations by the developer.
# All configuration possibilities are available in the config/main.yml file.
# General
application_id: {{ application_id }} # ID of the application, should be the name of the role folder application_id: {{ application_id }} # ID of the application, should be the name of the role folder
# Database
database_type: 0 # Database type [postgres, mariadb] database_type: 0 # Database type [postgres, mariadb]
# Docker
docker_compose_flush_handlers: true # When this is set to true an auto-flush after the docker-compose.yml, and env deploy is triggered, otherwise you have todo it manual. docker_compose_flush_handlers: true # When this is set to true an auto-flush after the docker-compose.yml, and env deploy is triggered, otherwise you have todo it manual.
docker_compose_skipp_file_creation: false # Skipp creation of docker-compose.yml file
# The following variable mapping is optional, but imt makes it easier to read the code. # The following variable mapping is optional, but imt makes it easier to read the code.
# I recommend, to use this mappings, but you can skipp it and access the config entries direct via get_app_conf # I recommend, to use this mappings, but you can skipp it and access the config entries direct via get_app_conf