...
 
Commits (2)
# This is an ansible playbook to apply BBB configuration values # This is an ansible playbook to apply BBB configuration values
#
# For the local host, use it (as root) like:
#
# ansible-playbook --connection=local -i 127.0.0.1, path/to/bbb-apply-config.yml
#
- name: Apply local BBB configuration - name: Apply local BBB configuration
hosts: all hosts: bigbluebutton
become: yes
tasks: tasks:
- name: We are alive - name: We are alive
debug: debug:
msg: "Hello, world!" msg: Hello world, from {{ ansible_fqdn }}.
- name: Fix nginx bigbluebutton config
blockinfile:
path: /etc/nginx/sites-available/bigbluebutton
insertafter: server_name
block: |
location / {
return 301 https://$host$request_uri;
}
}
## tls-secured bbb ###
server {
server_name {{ ansible_fqdn }};
backup: yes
...@@ -68,13 +68,13 @@ for m in meetings: ...@@ -68,13 +68,13 @@ for m in meetings:
p = m.getElementsByTagName("bbb-origin-server-name")[0] p = m.getElementsByTagName("bbb-origin-server-name")[0]
numMeetings += 1 numMeetings += 1
p = m.getElementsByTagName("participantCount")[0] p = m.getElementsByTagName("participantCount")[0]
numAttendees += int(p.firstChild.wholeText) numAttendees += int(p.firstChild.wholeText)
p = m.getElementsByTagName("listenerCount")[0] p = m.getElementsByTagName("listenerCount")[0]
numListeners += int(p.firstChild.wholeText) numListeners += int(p.firstChild.wholeText)
p = m.getElementsByTagName("voiceParticipantCount")[0] p = m.getElementsByTagName("voiceParticipantCount")[0]
numWithVoice += int(p.firstChild.wholeText) numWithVoice += int(p.firstChild.wholeText)
p = m.getElementsByTagName("videoCount")[0] p = m.getElementsByTagName("videoCount")[0]
numWithVideo += int(p.firstChild.wholeText) numWithVideo += int(p.firstChild.wholeText)
if "autoconf" in sys.argv: if "autoconf" in sys.argv:
...@@ -86,22 +86,22 @@ elif "config" in sys.argv: ...@@ -86,22 +86,22 @@ elif "config" in sys.argv:
print("graph_args --base 1000 -l 0") print("graph_args --base 1000 -l 0")
print("graph_category system") print("graph_category system")
print("attendees.label attendees") print("attendees.label attendees")
print("attendees.type DERIVE") print("attendees.type GAUGE")
print("attendees.info Number of attendees") print("attendees.info Number of attendees")
print("attendees.draw AREA") print("attendees.draw AREA")
print("meetings.label meetings") print("meetings.label meetings")
print("meetings.type DERIVE") print("meetings.type GAUGE")
print("meetings.info Number of active conferences") print("meetings.info Number of active conferences")
print("video.label video") print("video.label video")
print("video.type DERIVE") print("video.type GAUGE")
print("video.info Number of video streams") print("video.info Number of video streams")
print("video.draw STACK") print("video.draw STACK")
print("voice.label voice") print("voice.label voice")
print("voice.type DERIVE") print("voice.type GAUGE")
print("voice.info Number of voice streams") print("voice.info Number of voice streams")
print("voice.draw STACK") print("voice.draw STACK")
print("listeners.label listeners") print("listeners.label listeners")
print("listeners.type DERIVE") print("listeners.type GAUGE")
print("listeners.info Number of listening attendees") print("listeners.info Number of listening attendees")
print("listeners.draw STACK") print("listeners.draw STACK")
sys.exit(0) sys.exit(0)
......