Update Ansible BBB auf Version BBB 2.7
This commit is contained in:
parent
e0f2422584
commit
62e0f4cb94
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
- hosts: "{{ target }}"
|
||||||
|
remote_user: core
|
||||||
|
become: yes
|
||||||
|
roles:
|
||||||
|
- kwoodson.yedit
|
||||||
|
- bbb_install
|
||||||
|
|
||||||
|
...
|
|
@ -1,12 +1,18 @@
|
||||||
---
|
---
|
||||||
- hosts: "{{ target }}"
|
- hosts: "{{ target }}"
|
||||||
remote_user: root
|
remote_user: root
|
||||||
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- apt_upgrade
|
- apt_upgrade
|
||||||
- bs_hostnames
|
- bs_hostnames
|
||||||
- bs_users
|
- bs_users
|
||||||
- bs_sshd
|
- bs_sshd
|
||||||
|
|
||||||
|
# Falls failed to lock apt for exclusive operation Fehler geworfen wird:
|
||||||
|
#sudo rm -rf /var/lib/apt/lists/*
|
||||||
|
#sudo apt-get clean
|
||||||
|
#sudo apt-get update
|
||||||
|
|
||||||
# sshd schließt den root user von ssh aus, danach läuft das Playbook nicht mehr als root
|
# sshd schließt den root user von ssh aus, danach läuft das Playbook nicht mehr als root
|
||||||
# Weiter geht's mit bootstrapCore
|
# Weiter geht's mit bootstrapCore
|
||||||
...
|
...
|
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
install_image:
|
||||||
|
path: /root/.oldroot/nfs/install/installimage
|
||||||
|
raid: yes -l 1
|
||||||
|
image: /root/.oldroot/nfs/images/Ubuntu-2004-focal-64-minimal.tar.gz
|
||||||
|
drives: sda,sdb
|
||||||
|
|
||||||
|
passwordless_sudo: true
|
||||||
|
|
||||||
|
# bobby $6$A7Sw5gku7$0WqY/Z4Ei0axG.mZwDQlFJfK8Rtx6H0eKuP8CW23V5f/5j9sXendknLtXexQfgDzA4Ri55ZqhJnpf05MJV71J0
|
||||||
|
# Passwort für root ist bobby, muss hier im Klartext angegeben werden
|
||||||
|
password: bobby
|
||||||
|
|
||||||
|
# root hat kein keypair, nur ein .ssh Verzeichnis mit hohgeladener authorized_keys Datei
|
||||||
|
# ssh_key_root: /root/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
ssh_key_core: /home/core/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
default_presentation: rudiDefault.pdf
|
||||||
|
|
||||||
|
|
||||||
|
# BBB-Settings
|
||||||
|
|
||||||
|
# bigbluebutton.properties
|
||||||
|
defaultWelcomeMessage: defaultWelcomeMessage=Willkommen zu <b>%%CONFNAME%%</b>
|
||||||
|
defaultWelcomeMessageFooter: defaultWelcomeMessageFooter=<small><a href='https://bigbluebutton.org/' target='_blank'>BigBlueButton</a></small>
|
||||||
|
learningDashboardEnabled: learningDashboardEnabled=false
|
||||||
|
defaultDialAccessNumber: defaultDialAccessNumber=095129909624
|
||||||
|
# defaultDialAccessNumber: defaultDialAccessNumber=613-555-1234
|
||||||
|
|
||||||
|
disableRecordingDefault: disableRecordingDefault=false
|
||||||
|
webcamsOnlyForModerator: webcamsOnlyForModerator=false
|
||||||
|
learningDashboardCleanupDelayInMinutes: learningDashboardCleanupDelayInMinutes=0
|
||||||
|
bigbluebutton_web_logoutURL: bigbluebutton.web.logoutURL=https://open-diakonie.de
|
||||||
|
|
||||||
|
# settings.yml
|
|
@ -7,6 +7,28 @@ install_image:
|
||||||
|
|
||||||
passwordless_sudo: true
|
passwordless_sudo: true
|
||||||
|
|
||||||
|
default_presentation: xitDefault.pdf
|
||||||
|
|
||||||
|
|
||||||
|
# BBB-Settings
|
||||||
|
|
||||||
|
# bigbluebutton.properties
|
||||||
|
defaultWelcomeMessage: defaultWelcomeMessage=Willkommen zu <b>%%CONFNAME%%</b>
|
||||||
|
defaultWelcomeMessageFooter: defaultWelcomeMessageFooter=<small><a href='https://bigbluebutton.org/' target='_blank'>BigBlueButton</a></small>
|
||||||
|
learningDashboardEnabled: learningDashboardEnabled=false
|
||||||
|
# defaultDialAccessNumber: defaultDialAccessNumber=095129909624
|
||||||
|
defaultDialAccessNumber: defaultDialAccessNumber=613-555-1234
|
||||||
|
|
||||||
|
disableRecordingDefault: disableRecordingDefault=false
|
||||||
|
webcamsOnlyForModerator: webcamsOnlyForModerator=false
|
||||||
|
learningDashboardCleanupDelayInMinutes: learningDashboardCleanupDelayInMinutes=0
|
||||||
|
bigbluebutton_web_logoutURL: bigbluebutton.web.logoutURL=https://open-diakonie.de
|
||||||
|
|
||||||
|
# settings.yml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#install_vm:
|
#install_vm:
|
||||||
# osvariant: ubuntu20.04
|
# osvariant: ubuntu20.04
|
||||||
# image: /home/core/tmp/ubuntu-22.04.1-live-server-amd64.iso
|
# image: /home/core/tmp/ubuntu-22.04.1-live-server-amd64.iso
|
||||||
|
@ -29,7 +51,8 @@ password: bobby
|
||||||
# ssh_key_root: /root/.ssh/id_rsa.pub
|
# ssh_key_root: /root/.ssh/id_rsa.pub
|
||||||
|
|
||||||
ssh_key_core: /home/core/.ssh/id_rsa.pub
|
ssh_key_core: /home/core/.ssh/id_rsa.pub
|
||||||
vm_name: vhosttst2
|
vm_name: vhosttst
|
||||||
|
vm_ip: 192.168.122.10
|
||||||
vm_vcpus: 2
|
vm_vcpus: 2
|
||||||
vm_ram_mb: 4096
|
vm_ram_mb: 4096
|
||||||
vm_net: default
|
vm_net: default
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
install_image:
|
||||||
|
path: /root/.oldroot/nfs/install/installimage
|
||||||
|
raid: yes -l 1
|
||||||
|
image: /root/.oldroot/nfs/images/Ubuntu-2004-focal-64-minimal.tar.gz
|
||||||
|
drives: nvme0n1,nvme1n1
|
||||||
|
|
||||||
|
passwordless_sudo: true
|
||||||
|
|
||||||
|
# bobby $6$A7Sw5gku7$0WqY/Z4Ei0axG.mZwDQlFJfK8Rtx6H0eKuP8CW23V5f/5j9sXendknLtXexQfgDzA4Ri55ZqhJnpf05MJV71J0
|
||||||
|
# Passwort für root ist bobby, muss hier im Klartext angegeben werden
|
||||||
|
password: bobby
|
||||||
|
|
||||||
|
# root hat kein keypair, nur ein .ssh Verzeichnis mit hohgeladener authorized_keys Datei
|
||||||
|
# ssh_key_root: /root/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
ssh_key_core: /home/core/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
default_presentation: blankDefault.pdf
|
||||||
|
|
||||||
|
|
||||||
|
# BBB-Settings
|
||||||
|
|
||||||
|
# bigbluebutton.properties
|
||||||
|
defaultWelcomeMessage: defaultWelcomeMessage=Willkommen zu <b>%%CONFNAME%%</b>
|
||||||
|
defaultWelcomeMessageFooter: defaultWelcomeMessageFooter=<small><a href='https://bigbluebutton.org/' target='_blank'>BigBlueButton</a></small>
|
||||||
|
learningDashboardEnabled: learningDashboardEnabled=false
|
||||||
|
# defaultDialAccessNumber: defaultDialAccessNumber=095129909624
|
||||||
|
defaultDialAccessNumber: defaultDialAccessNumber=613-555-1234
|
||||||
|
|
||||||
|
disableRecordingDefault: disableRecordingDefault=false
|
||||||
|
webcamsOnlyForModerator: webcamsOnlyForModerator=false
|
||||||
|
learningDashboardCleanupDelayInMinutes: learningDashboardCleanupDelayInMinutes=0
|
||||||
|
bigbluebutton_web_logoutURL: bigbluebutton.web.logoutURL=https://www.wikipedia.de/
|
||||||
|
|
||||||
|
# settings.yml
|
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
install_image:
|
||||||
|
path: /root/.oldroot/nfs/install/installimage
|
||||||
|
raid: yes -l 1
|
||||||
|
image: /root/.oldroot/nfs/images/Ubuntu-2004-focal-64-minimal.tar.gz
|
||||||
|
drives: sda,sdb
|
||||||
|
|
||||||
|
passwordless_sudo: true
|
||||||
|
|
||||||
|
# bobby $6$A7Sw5gku7$0WqY/Z4Ei0axG.mZwDQlFJfK8Rtx6H0eKuP8CW23V5f/5j9sXendknLtXexQfgDzA4Ri55ZqhJnpf05MJV71J0
|
||||||
|
# Passwort für root ist bobby, muss hier im Klartext angegeben werden
|
||||||
|
password: bobby
|
||||||
|
|
||||||
|
# root hat kein keypair, nur ein .ssh Verzeichnis mit hohgeladener authorized_keys Datei
|
||||||
|
# ssh_key_root: /root/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
ssh_key_core: /home/core/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
default_presentation: rudiDefault.pdf
|
||||||
|
|
||||||
|
|
||||||
|
# BBB-Settings
|
||||||
|
|
||||||
|
# bigbluebutton.properties
|
||||||
|
defaultWelcomeMessage: defaultWelcomeMessage=Willkommen zu <b>%%CONFNAME%%</b>
|
||||||
|
defaultWelcomeMessageFooter: defaultWelcomeMessageFooter=<small><a href='https://bigbluebutton.org/' target='_blank'>BigBlueButton</a></small>
|
||||||
|
learningDashboardEnabled: learningDashboardEnabled=false
|
||||||
|
# defaultDialAccessNumber: defaultDialAccessNumber=095129909624
|
||||||
|
defaultDialAccessNumber: defaultDialAccessNumber=613-555-1234
|
||||||
|
|
||||||
|
disableRecordingDefault: disableRecordingDefault=false
|
||||||
|
webcamsOnlyForModerator: webcamsOnlyForModerator=false
|
||||||
|
learningDashboardCleanupDelayInMinutes: learningDashboardCleanupDelayInMinutes=0
|
||||||
|
bigbluebutton_web_logoutURL: bigbluebutton.web.logoutURL=https://open-diakonie.de
|
||||||
|
|
||||||
|
# settings.yml
|
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
install_image:
|
||||||
|
path: /root/.oldroot/nfs/install/installimage
|
||||||
|
raid: yes -l 1
|
||||||
|
image: /root/.oldroot/nfs/images/Ubuntu-2004-focal-64-minimal.tar.gz
|
||||||
|
drives: nvme0n1,nvme1n1
|
||||||
|
|
||||||
|
passwordless_sudo: true
|
||||||
|
|
||||||
|
# bobby $6$A7Sw5gku7$0WqY/Z4Ei0axG.mZwDQlFJfK8Rtx6H0eKuP8CW23V5f/5j9sXendknLtXexQfgDzA4Ri55ZqhJnpf05MJV71J0
|
||||||
|
# Passwort für root ist bobby, muss hier im Klartext angegeben werden
|
||||||
|
password: bobby
|
||||||
|
|
||||||
|
# root hat kein keypair, nur ein .ssh Verzeichnis mit hohgeladener authorized_keys Datei
|
||||||
|
# ssh_key_root: /root/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
ssh_key_core: /home/core/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
default_presentation: rudiDefault.pdf
|
||||||
|
|
||||||
|
|
||||||
|
# BBB-Settings
|
||||||
|
|
||||||
|
# bigbluebutton.properties
|
||||||
|
defaultWelcomeMessage: defaultWelcomeMessage=Willkommen zu <b>%%CONFNAME%%</b>
|
||||||
|
defaultWelcomeMessageFooter: defaultWelcomeMessageFooter=<small><a href='https://bigbluebutton.org/' target='_blank'>BigBlueButton</a></small>
|
||||||
|
learningDashboardEnabled: learningDashboardEnabled=false
|
||||||
|
# defaultDialAccessNumber: defaultDialAccessNumber=095129909624
|
||||||
|
defaultDialAccessNumber: defaultDialAccessNumber=613-555-1234
|
||||||
|
|
||||||
|
disableRecordingDefault: disableRecordingDefault=false
|
||||||
|
webcamsOnlyForModerator: webcamsOnlyForModerator=false
|
||||||
|
learningDashboardCleanupDelayInMinutes: learningDashboardCleanupDelayInMinutes=0
|
||||||
|
bigbluebutton_web_logoutURL: bigbluebutton.web.logoutURL=https://open-diakonie.de
|
||||||
|
|
||||||
|
# settings.yml
|
7
hosts
7
hosts
|
@ -1,2 +1,5 @@
|
||||||
bbb.xitq.de
|
# bbb.xitq.de
|
||||||
# bbb.xit
|
# bbb1.open-diakonie.d#
|
||||||
|
# bbb2.open-diakonie.de
|
||||||
|
# bbb.bfwbb-lernen.de
|
||||||
|
bbb0.sdw.systems
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
- src: kwoodson.yedit
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -0,0 +1,11 @@
|
||||||
|
<include>
|
||||||
|
<gateway name="sipgate.de">
|
||||||
|
<param name="proxy" value="sipgate.de"/>
|
||||||
|
<param name="username" value="2995290e0"/>
|
||||||
|
<param name="password" value="6noqJZHm3SNC"/>
|
||||||
|
<param name="extension" value="12345"/>
|
||||||
|
<param name="register" value="true"/>
|
||||||
|
<param name="context" value="public"/>
|
||||||
|
<param name="expire-seconds" value="60"/>
|
||||||
|
</gateway>
|
||||||
|
</include>
|
|
@ -0,0 +1 @@
|
||||||
|
./bbb-install-2.5.sh -v focal-250 -s bbb.xitq.de -e benedikt.wismans@sdw.systems -c service.sdw.systems:3ef948d61ff4bcf3e87f068dfecbbbe6
|
|
@ -0,0 +1,20 @@
|
||||||
|
<extension name="from_my_provider">
|
||||||
|
<condition field="destination_number" expression="^12345">
|
||||||
|
<action application="answer"/>
|
||||||
|
<action application="sleep" data="1000"/>
|
||||||
|
<action application="play_and_get_digits" data="5 5 3 7000 # conference/conf-pin.wav ivr/ivr-that_was_an_invalid_entry.wav pin \d+"/>
|
||||||
|
|
||||||
|
<!-- Uncomment the following block if you want to mask the phone number in the list of participants. -->
|
||||||
|
<!-- Instead of `01711233121` it will then show `xxx-xxx-3121`. -->
|
||||||
|
<action application="set_profile_var" data="caller_id_name=${regex(${caller_id_name}|^.*(.{4})$|xxx-xxx-%1)}"/>
|
||||||
|
|
||||||
|
<action application="transfer" data="SEND_TO_CONFERENCE XML public"/>
|
||||||
|
</condition>
|
||||||
|
</extension>
|
||||||
|
<extension name="check_if_conference_active">
|
||||||
|
<condition field="${conference ${pin} list}" expression="/sofia/g" />
|
||||||
|
<condition field="destination_number" expression="^SEND_TO_CONFERENCE$">
|
||||||
|
<action application="set" data="bbb_authorized=true"/>
|
||||||
|
<action application="transfer" data="${pin} XML default"/>
|
||||||
|
</condition>
|
||||||
|
</extension>
|
Binary file not shown.
|
@ -0,0 +1,2 @@
|
||||||
|
tail -n 200 -f /var/log/bigbluebutton/bbb-web.log
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||||
|
|
||||||
|
<bean id="stun0" class="org.bigbluebutton.web.services.turn.StunServer">
|
||||||
|
<constructor-arg index="0" value="stun:infra.sdw.systems"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="turn0" class="org.bigbluebutton.web.services.turn.TurnServer">
|
||||||
|
<constructor-arg index="0" value="3ef948d61ff4bcf3e87f068dfecbbbe6"/>
|
||||||
|
<constructor-arg index="1" value="turns:infra.sdw.systems:443?transport=tcp"/>
|
||||||
|
<constructor-arg index="2" value="86400"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="turn1" class="org.bigbluebutton.web.services.turn.TurnServer">
|
||||||
|
<constructor-arg index="0" value="3ef948d61ff4bcf3e87f068dfecbbbe6"/>
|
||||||
|
<constructor-arg index="1" value="turn:infra.sdw.systems:443?transport=tcp"/>
|
||||||
|
<constructor-arg index="2" value="86400"/>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="stunTurnService"
|
||||||
|
class="org.bigbluebutton.web.services.turn.StunTurnService">
|
||||||
|
<property name="stunServers">
|
||||||
|
<set>
|
||||||
|
<ref bean="stun0"/>
|
||||||
|
</set>
|
||||||
|
</property>
|
||||||
|
|
||||||
|
<property name="turnServers">
|
||||||
|
<set>
|
||||||
|
<ref bean="turn0"/>
|
||||||
|
<ref bean="turn1"/>
|
||||||
|
</set>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
</beans>
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo Working on host `hostname`
|
||||||
|
sudo apt-get update && yes Y | sudo apt-get upgrade && yes Y | sudo apt-get dist-upgrade && yes Y | sudo apt autoremove
|
||||||
|
|
||||||
|
sudo cp ~/Scripte/turn-stun-servers.xml.konfiguriert /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml
|
||||||
|
|
||||||
|
sudo cp ~/Scripte/customerDefault.pdf /var/www/bigbluebutton-default/default.pdf
|
||||||
|
|
||||||
|
sudo bbb-conf --setip `hostname`
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
vhosts=( vhost )
|
||||||
|
|
||||||
|
for i in "${vhosts[@]}"; do
|
||||||
|
echo Working on vhost $i
|
||||||
|
ssh $i sudo apt-get update && yes Y | sudo apt-get upgrade && yes Y | sudo apt-get dist-upgrade && yes Y | sudo apt autoremove
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 0
|
Binary file not shown.
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Set default values in settings.yml
|
||||||
|
yedit:
|
||||||
|
src: /home/core/Scripte/settings.yml
|
||||||
|
edits:
|
||||||
|
- key: public.kurento.pagination.mobilePageSizes.moderator
|
||||||
|
value: 6
|
||||||
|
- key: public.kurento.pagination.mobilePageSizes.viewer
|
||||||
|
value: 4
|
||||||
|
|
||||||
|
- name: Set default values in file bigbluebutton.properties
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /home/core/Scripte/bigbluebutton.properties
|
||||||
|
### line to be searched & matched
|
||||||
|
regexp: '{{ item.From }}'
|
||||||
|
### line to be in placed
|
||||||
|
line: '{{ item.To }}'
|
||||||
|
state: present
|
||||||
|
backrefs: yes
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
with_items:
|
||||||
|
- { From: '^defaultWelcomeMessage=(.*)$', To: '{{ defaultWelcomeMessage }}'}
|
||||||
|
- { From: '^defaultWelcomeMessageFooter=(.*)$', To: '{{ defaultWelcomeMessageFooter }}'}
|
||||||
|
- { From: '^learningDashboardEnabled=(.*)$', To: '{{ learningDashboardEnabled }}'}
|
||||||
|
- { From: '^disableRecordingDefault=(.*)$', To: '{{ disableRecordingDefault }}'}
|
||||||
|
- { From: '^webcamsOnlyForModerator=(.*)$', To: '{{ webcamsOnlyForModerator }}'}
|
||||||
|
- { From: '^learningDashboardCleanupDelayInMinutes=(.*)$', To: '{{ learningDashboardCleanupDelayInMinutes }}'}
|
||||||
|
- { From: '^bigbluebutton\.web\.logoutURL=(.*)$', To: '{{ bigbluebutton_web_logoutURL }}'}
|
||||||
|
|
||||||
|
- name: Configure turn and stun service and default presentation using update script and restart BBB
|
||||||
|
command:
|
||||||
|
cmd: "/home/core/Scripte/update"
|
||||||
|
chdir: /home/core/Scripte
|
||||||
|
...
|
|
@ -0,0 +1,43 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Ensure /opt/freeswitch/etc/freeswitch/sip_profiles/external dir exists
|
||||||
|
file:
|
||||||
|
path: "/opt/freeswitch/etc/freeswitch/sip_profiles/external"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Upload ext_sipgate.xml config to /opt/freeswitch/etc/freeswitch/sip_profiles/external/sipgate.xml
|
||||||
|
copy:
|
||||||
|
src: ext_sipgate.xml
|
||||||
|
dest: /opt/freeswitch/etc/freeswitch/sip_profiles/external/sipgate.xml
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Ensure /opt/freeswitch/etc/freeswitch/dialplan/public dir exists
|
||||||
|
file:
|
||||||
|
path: "/opt/freeswitch/etc/freeswitch/dialplan/public"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Upload pub_sipgate.xml config to /opt/freeswitch/etc/freeswitch/dialplan/public/sipgate.xml
|
||||||
|
copy:
|
||||||
|
src: pub_sipgate.xml
|
||||||
|
dest: /opt/freeswitch/etc/freeswitch/dialplan/public/sipgate.xml
|
||||||
|
owner: freeswitch
|
||||||
|
group: daemon
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Set defaultDialAccessNumber number in file bigbluebutton.properties
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /home/core/Scripte/bigbluebutton.properties
|
||||||
|
### line to be searched & matched
|
||||||
|
regexp: '{{ item.From }}'
|
||||||
|
### line to be in placed
|
||||||
|
line: '{{ item.To }}'
|
||||||
|
state: present
|
||||||
|
backrefs: yes
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
with_items:
|
||||||
|
- { From: '^defaultDialAccessNumber=(.*)$', To: '{{ defaultDialAccessNumber }}'}
|
||||||
|
|
||||||
|
...
|
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Upload bbb-install script to /root
|
||||||
|
copy:
|
||||||
|
src: bbb-install-2.7.sh
|
||||||
|
dest: /root
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Execute bbb-install script only if /usr/share/bigbluebutton/license.txt does not exist
|
||||||
|
command:
|
||||||
|
cmd: "/root/bbb-install-2.7.sh -v focal-270 -s {{ inventory_hostname }} -e benedikt.wismans@sdw.systems -c service.sdw.systems:3ef948d61ff4bcf3e87f068dfecbbbe6"
|
||||||
|
chdir: /root
|
||||||
|
creates: /usr/share/bigbluebutton/license.txt
|
||||||
|
|
||||||
|
- name: Install bbb webhooks package
|
||||||
|
apt:
|
||||||
|
name: bbb-webhooks
|
||||||
|
state: present
|
||||||
|
...
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
- import_tasks: packages.yml
|
||||||
|
- import_tasks: install_bbb.yml
|
||||||
|
- import_tasks: setup_bbb.yml
|
||||||
|
- import_tasks: config_bbb.yml
|
||||||
|
# - import_tasks: dialin_bbb.yml
|
||||||
|
|
||||||
|
...
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Install apparmor required by new version of docker
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- apparmor-utils
|
||||||
|
- apparmor-profiles
|
||||||
|
- apparmor-profiles-extra
|
||||||
|
- vim-addon-manager
|
||||||
|
|
||||||
|
...
|
|
@ -0,0 +1,48 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Create or recreate symlinks for bbb config files in script-directory
|
||||||
|
shell: |
|
||||||
|
cd /home/core/Scripte
|
||||||
|
ln -sf /usr/local/bigbluebutton/bbb-webhooks
|
||||||
|
ln -sf /etc/bigbluebutton
|
||||||
|
ln -sf /var/www/bigbluebutton-default
|
||||||
|
ln -sf /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
|
||||||
|
ln -sf /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml
|
||||||
|
ln -sf /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
|
||||||
|
ln -sf /usr/share/meteor/bundle/systemd_start.sh
|
||||||
|
ln -sf /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml
|
||||||
|
ln -sf /usr/share/bigbluebutton/nginx/sip.nginx
|
||||||
|
|
||||||
|
- name: Upload turn-stun-config to core's Scripte directory
|
||||||
|
copy:
|
||||||
|
src: turn-stun-servers.xml.konfiguriert
|
||||||
|
dest: /home/core/Scripte
|
||||||
|
owner: core
|
||||||
|
group: users
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Upload update script to core's Scripte directory
|
||||||
|
copy:
|
||||||
|
src: update
|
||||||
|
dest: /home/core/Scripte
|
||||||
|
owner: core
|
||||||
|
group: users
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Install core user's crontab update-Script before at 3.00 before rebooting at 4 AM
|
||||||
|
ansible.builtin.cron:
|
||||||
|
name: run update Script at 3:00
|
||||||
|
user: core
|
||||||
|
minute: "0"
|
||||||
|
hour: "3"
|
||||||
|
job: "/home/core/Scripte/update"
|
||||||
|
|
||||||
|
- name: Upload default presantation to core's Scripte directory
|
||||||
|
copy:
|
||||||
|
src: "{{ default_presentation }}"
|
||||||
|
dest: /home/core/Scripte/customerDefault.pdf
|
||||||
|
owner: core
|
||||||
|
group: users
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
...
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /home/core/Scripte/bashlib
|
||||||
|
|
||||||
|
echo $1
|
||||||
|
|
||||||
|
addVBackground $1
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 110 KiB |
|
@ -17,3 +17,50 @@ adddate() {
|
||||||
getnic() {
|
getnic() {
|
||||||
echo `ip link show | grep "state UP" | grep -v "LOOPBACK" | grep -v virbr | awk '{print $2}' | sed 's/://g'`
|
echo `ip link show | grep "state UP" | grep -v "LOOPBACK" | grep -v virbr | awk '{print $2}' | sed 's/://g'`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Method removes all BBB Virtual Webcam Backgrounds (except the blur thumbnail)
|
||||||
|
removeAllVBackgrounds() {
|
||||||
|
|
||||||
|
HTML5_CONFIG=/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
|
||||||
|
|
||||||
|
cat /usr/share/meteor/bundle/programs/web.browser/program.json | jq '.manifest|=map(select( (.path|contains("virtual-backgrounds")) and (.path|contains("blur.jpg")|not) |not))' | sponge /usr/share/meteor/bundle/programs/web.browser/program.json >/dev/null
|
||||||
|
yq d -i $HTML5_CONFIG public.virtualBackgrounds.fileNames
|
||||||
|
}
|
||||||
|
|
||||||
|
#Adds a new Virtual Background image. Paramter: full path to background image
|
||||||
|
# If a file thumbnails/<filename> exists in the original location this thumbnail is used. Otherwise a scaled down image of the original is made
|
||||||
|
addVBackground() {
|
||||||
|
PROGRAMJSON=/usr/share/meteor/bundle/programs/web.browser/program.json
|
||||||
|
if [ ! -f $1 ]; then
|
||||||
|
echo "Could not find file $1 - not adding as Virtual Background"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
FILENAME=$(basename $1)
|
||||||
|
DIRECTORY=$(dirname $1)
|
||||||
|
|
||||||
|
HTML5_CONFIG=/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
|
||||||
|
|
||||||
|
#Copy Files
|
||||||
|
cp $1 /usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds
|
||||||
|
if [ -f $DIRECTORY/thumbnails/$FILENAME ]; then
|
||||||
|
cp $DIRECTORY/thumbnails/$FILENAME /usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds/thumbnails
|
||||||
|
else
|
||||||
|
convert $1 -scale 50 /usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds/thumbnails/$FILENAME
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Get SHA-1 Checksums
|
||||||
|
CHKSUM=$(sha1sum $1|cut -d" " -f1)
|
||||||
|
CHKSUM_TN=$(sha1sum /usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds/thumbnails/$FILENAME|cut -d" " -f1)
|
||||||
|
|
||||||
|
#Get File Sizes
|
||||||
|
SIZE=$(stat --printf="%s" $1)
|
||||||
|
SIZE_TN=$(stat --printf="%s" /usr/share/meteor/bundle/programs/web.browser/app/resources/images/virtual-backgrounds/thumbnails/$FILENAME)
|
||||||
|
|
||||||
|
#Generate JSON-Snippet to add to program.json
|
||||||
|
JSON="{ \"path\" : \"app/resources/images/virtual-backgrounds/$FILENAME\", \"where\" : \"client\", \"type\" : \"asset\", \"cacheable\": false, \"url\": \"/resources/images/virtual-backgrounds/$FILENAME\", \"size\": \"$SIZE\", \"hash\": \"$CHKSUM\", \"sri\": null }"
|
||||||
|
JSON_TN="{ \"path\" : \"app/resources/images/virtual-backgrounds/thumbnails/$FILENAME\", \"where\" : \"client\", \"type\" : \"asset\", \"cacheable\": false, \"url\": \"/resources/images/virtual-backgrounds/thumbnails/$FILENAME\", \"size\": \"$SIZE_TN\", \"hash\": \"$CHKSUM_TN\", \"sri\": null }"
|
||||||
|
|
||||||
|
#Append Metadata to program.json
|
||||||
|
cat $PROGRAMJSON |jq ".manifest += [$JSON] + [$JSON_TN]" |sponge $PROGRAMJSON
|
||||||
|
yq w -i $HTML5_CONFIG public.virtualBackgrounds.fileNames[+] "$FILENAME"
|
||||||
|
}
|
||||||
|
|
|
@ -37,14 +37,39 @@
|
||||||
- sysstat
|
- sysstat
|
||||||
- ifstat
|
- ifstat
|
||||||
|
|
||||||
- name: Upload update to core's Scripte directory
|
- name: Install moreutis soak up standard input and write to a file) und jq (The jq is a command line based JSON processor) for custom background installation script in bashlib
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- moreutils
|
||||||
|
- jq
|
||||||
|
|
||||||
|
- name: Upload addVirtualBackground Script to core's Scripte directory
|
||||||
copy:
|
copy:
|
||||||
src: update
|
src: addVirtualBackground
|
||||||
dest: /home/core/Scripte/
|
dest: /home/core/Scripte/
|
||||||
owner: core
|
owner: core
|
||||||
group: users
|
group: users
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Upload VirtualBackground to core's Scripte directory
|
||||||
|
copy:
|
||||||
|
src: RD_Logo_Vielfalt_1280x960.jpg
|
||||||
|
dest: /home/core/Scripte/
|
||||||
|
owner: core
|
||||||
|
group: users
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Das update-Script beisst sich mit dem aus BBB
|
||||||
|
#- name: Upload update to core's Scripte directory
|
||||||
|
# copy:
|
||||||
|
# src: update
|
||||||
|
# dest: /home/core/Scripte/
|
||||||
|
# owner: core
|
||||||
|
# group: users
|
||||||
|
# mode: 0755
|
||||||
|
|
||||||
|
|
||||||
- name: Install vim for script editing
|
- name: Install vim for script editing
|
||||||
apt:
|
apt:
|
||||||
|
|
|
@ -13,6 +13,7 @@ rocommunity SDW 88.99.138.96 #root4.sdw.systems
|
||||||
rocommunity SDW 94.130.135.216 #root5.sdw.systems
|
rocommunity SDW 94.130.135.216 #root5.sdw.systems
|
||||||
|
|
||||||
rocommunity SDW 178.15.59.28 #core-open-diakonie.de
|
rocommunity SDW 178.15.59.28 #core-open-diakonie.de
|
||||||
|
rocommunity SDW 178.15.152.60 #core-open-diaknoie.de behind reverse proxy
|
||||||
|
|
||||||
# Default access to basic system info
|
# Default access to basic system info
|
||||||
rocommunity public default -V systemonly
|
rocommunity public default -V systemonly
|
||||||
|
@ -84,7 +85,3 @@ load 12 10 5
|
||||||
# Remember to activate the 'createUser' lines above
|
# Remember to activate the 'createUser' lines above
|
||||||
iquerySecName internalUser
|
iquerySecName internalUser
|
||||||
rouser internalUser
|
rouser internalUser
|
||||||
# generate traps on UCD error conditions
|
|
||||||
defaultMonitors yes
|
|
||||||
# generate traps on linkUp/Down
|
|
||||||
linkUpDownNotifications yes
|
|
||||||
|
|
|
@ -4,11 +4,13 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- snmpd
|
- snmpd
|
||||||
|
- snmp
|
||||||
|
- snmp-mibs-downloader
|
||||||
|
|
||||||
- name: Upload snnmpd configuration file snmpd.conf to /etc/snmp
|
- name: Upload snnmpd configuration file snmpd.conf to /etc/snmp
|
||||||
copy:
|
copy:
|
||||||
src: snmpd.conf
|
src: snmpd.conf
|
||||||
dest: /etc/snmpd/
|
dest: /etc/snmp/
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLGR3klHdPzj5rOwoce8JdvkMGXoTSXdp66JhYYO4t5hWQRB+DZjvhpSBjvtKZZH07wHS0Ya69baDmwHiOhzhNwcs3hwi/I2k/ABSjmjRNNAMlxauHvaRviFYtx5/h7ZayKW9gpxU4e22/9k0F9XAaWkN8Mc7PgvagUy9POpP19gyBBS35kjFIKjOMrz1nQ+9jwUza7lARryctnDoaiUd7DHsLfvSa8Q1fVNUka+k0H1YtRxfsdU8CdMrQf+bDtUTjJupyT5xFphXEle31E49+WAsYGwXkpmQA4zM6E1gOJ0rgnmm/DFJeJ/DYaYP79XzwjvJxNSVMRAg6t5P5z93x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otT7v92WGFngNSLd4qqnUexEd89zsv9mDlttQe6Z5oIHeFIpu0VsaOQiKXQHcKdwwsXdoTG7q989jJ9kRb3lC/Bs+fpzKd8Q/rPGLSkpJUA4RN6f7ZXJ7fQ86zNGZ7MsskcHJyQCdFPV/ESXNV9rabE6DX73 benediktwismans@acer
|
||||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdvEW4c8+OqO3bdc+5JonpEADbR304X5zXI5j9cOROK0XmK0BQVBrmimlcguEcBPinFRC7XaWgxH70bzPBcwTNVCQOzcAAF3zyuDFfLE5Kv5+vxp0g41AERYLC27Smwo8hQ/ckO+RSxFgM5FKTLErSqXdbtGMlFqA0b/auZhXDHXE+7ft8TSVFnTusrlYovNqwK3wuGHB2xs6gEqlVw5DVwhRsO/hq6pdoSx35GygQYWWPwY8vCSXaqrKbakG9GA0u4TqLE8StpnItEPfvQ3Fe/8AptC4u4JgYuucYZjFOQqzJdv0KHqKOriy7RdO01HxS6Ts7VnbvAc5aL8jZF9bl benediktwismans@intel
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdvEW4c8+OqO3bdc+5JonpEADbR304X5zXI5j9cOROK0XmK0BQVBrmimlcguEcBPinFRC7XaWgxH70bzPBcwTNVCQOzcAAF3zyuDFfLE5Kv5+vxp0g41AERYLC27Smwo8hQ/ckO+RSxFgM5FKTLErSqXdbtGMlFqA0b/auZhXDHXE+7ft8TSVFnTusrlYovNqwK3wuGHB2xs6gEqlVw5DVwhRsO/hq6pdoSx35GygQYWWPwY8vCSXaqrKbakG9GA0u4TqLE8StpnItEPfvQ3Fe/8AptC4u4JgYuucYZjFOQqzJdv0KHqKOriy7RdO01HxS6Ts7VnbvAc5aL8jZF9bl benediktwismans@intel
|
||||||
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCV4amm6qrzqUfdjXftZCg37875duFRpJYkexQjtHpFRSR5Jk+m01MtQEwns4Ou6qlLhXUUZDhxGaktg5Bme8tMzp/AQ8mcKO4LfXVV+yAqbkJCYNHuAGJpNOaC9H8RdjuvN0wFq8lLiE4vGIbc2L5NPDzGYzoNTU8ubpqzvLldLqm46yL6uTdTOCCDNQuJV1oW6qj28R7AU5eKqYYib040RDdLkPZeTxGaEo+yy1vbR8dO0fU1HtT6gNay2F9nKsfPCXOk3ZU8ra5qA+ri9LK1GHCg8wM4FrJF22njrEJN/WBbjR7BXii4uqmrx+3RcYQrtJsAHjW3pUjkaROgBWjonlxSTkL7hcJmSBhXw3Uop8wVY7y8ntUbS6kBMhaZkYRfs2tekDoR5NmhcBAZtDmyI+MqVDUeg0biIRLDtCA5+pXpiBxgLf3NEf/E5kHPdrW+Na/ioO3b+aHO0124XfCTWjYPasw80hkLKRl1sHR/G7ZIMwVPk/6BzkwV8V95Fms= benediktwismans@sdwmacair
|
|
@ -11,7 +11,7 @@
|
||||||
when: stat_result.stat.exists == false
|
when: stat_result.stat.exists == false
|
||||||
|
|
||||||
- name: Execute installimage
|
- name: Execute installimage
|
||||||
shell: "{{ install_image.path }} -a -n {{ inventory_hostname }} -b grub -r {{ install_image.raid }} -i {{ install_image.image }} -p /boot:ext3:512M,/:ext4:all -d {{ install_image.drives }}"
|
shell: "{{ install_image.path }} -a -n {{ inventory_hostname }} -b grub -r {{ install_image.raid }} -i {{ install_image.image }} -p /boot:ext3:512M,swap:swap:32G,/:ext4:all -d {{ install_image.drives }}"
|
||||||
|
|
||||||
- name: Rebooting...
|
- name: Rebooting...
|
||||||
shell: reboot
|
shell: reboot
|
||||||
|
|
|
@ -13,7 +13,7 @@ buf=`/usr/sbin/arp -an | grep $mac`
|
||||||
#echo arp reports ipv4 config for MAC $mac is:$buf
|
#echo arp reports ipv4 config for MAC $mac is:$buf
|
||||||
|
|
||||||
# Die IPv4-Adresse steht in der Ausgabe von arp in runden Klammern.
|
# Die IPv4-Adresse steht in der Ausgabe von arp in runden Klammern.
|
||||||
# Das sind auch die einziegen runden Klammern in der Asugabe.
|
# Das sind auch die einzigen runden Klammern in der Ausgabe.
|
||||||
buf=${buf#*(}
|
buf=${buf#*(}
|
||||||
buf=${buf%)*}
|
buf=${buf%)*}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
- virt-manager
|
- virt-manager
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
- python3-libvirt
|
- python3-libvirt
|
||||||
|
- python3-lxml
|
||||||
- libguestfs-tools
|
- libguestfs-tools
|
||||||
|
|
||||||
- name: Check KVM ok
|
- name: Check KVM ok
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
- import_tasks: template_upload.yml
|
#- import_tasks: template_upload.yml
|
||||||
- import_tasks: vm_create.yml
|
#- import_tasks: vm_create.yml
|
||||||
- import_tasks: hosts_vm2ip.yml
|
#- import_tasks: hosts_vm2ip.yml
|
||||||
|
- import_tasks: virtnet_config.yml
|
||||||
|
|
||||||
...
|
...
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
#
|
||||||
|
- name: Retrieve MAC-address
|
||||||
|
shell: /home/core/Scripte/vhost_getMAC "{{ vm_name }}"
|
||||||
|
register: vm_mac
|
||||||
|
changed_when: "False"
|
||||||
|
|
||||||
|
|
||||||
|
- name: Debug MAC-address
|
||||||
|
debug: msg={{ vm_mac["stdout"] }}
|
||||||
|
changed_when: "False"
|
||||||
|
|
||||||
|
- name: Add a new host in the dhcp pool
|
||||||
|
community.libvirt.virt_net:
|
||||||
|
name: br_nat
|
||||||
|
command: modify
|
||||||
|
xml: "<host mac='{{ vm_mac[\"stdout\"] }}' name='{{ vm_name }}' ip='{{ vm_ip }}'/>"
|
||||||
|
|
||||||
|
...
|
Loading…
Reference in New Issue