This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
bbb-test.yml
123 lines (120 loc) · 3.12 KB
/
bbb-test.yml
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
---
- name: Basic Setup
hosts: test
become: yes
tags:
- base
vars_files:
- vars.yml
roles:
- base
- name: BigBlueButton
hosts: test
become: yes
tags:
- install-bbb
vars_files:
- vars.yml
vars:
bbb_letsencrypt_enable: yes
bbb_letsencrypt_email: "{{ letsencrypt_email }}"
bbb_coturn_enable: yes
bbb_turn_enable: yes
bbb_coturn_port_tls: 5349
bbb_turn_servers:
- server: "{{ bbb_hostname }}"
port: "{{ bbb_coturn_port }}"
secret: "{{ bbb_coturn_secret }}"
tls: false
- server: "{{ bbb_hostname }}"
port: "{{ bbb_coturn_port_tls }}"
secret: "{{ bbb_coturn_secret }}"
tls: true
bbb_nginx_dh: no
bbb_greenlight_enable: no
bbb_api_demos_enable: no
pre_tasks:
- name: find out what the current turn config is
slurp:
src: /etc/turnserver.conf
register: current_turn_conf
ignore_errors: yes
when: not bbb_coturn_secret is defined
- name: register current turn secret
set_fact:
bbb_coturn_secret: "{{ current_turn_conf.content | b64decode | regex_findall('static-auth-secret=(.+)') | first }}"
when: not bbb_coturn_secret is defined and not current_turn_conf.failed
- name: Generate turn server secret
command: openssl rand -hex 16
register: openssl_rand_16_turn
check_mode: no
when: not bbb_coturn_secret is defined
- name: Register turn server secret
set_fact:
bbb_coturn_secret: "{{ openssl_rand_16_turn.stdout }}"
when: not bbb_coturn_secret is defined and openssl_rand_16_turn is defined
roles:
- nginx
- n0emis.bigbluebutton
- kwoodson.yedit
- bbb-srcf
- name: Collect BBB secrets
hosts: bbb
become: yes
tags:
- install-bbb
- greenlight
roles:
- bbb-collect
- name: Frontend - Greenlight
hosts: bbb
become: yes
vars_files:
- vars.yml
tags:
- greenlight
vars:
nginx_domain_name: "bbb-test-gl.srcf.net"
lb_url: "{{ bbb_url }}"
lb_secret: "{{ bbb_secret }}"
redis_port: 6379
redis_bind_interface: 127.0.0.1
ruby_install_from_source: yes
ruby_version: 2.6.6
ruby_download_url: https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.gz
ruby_install_bundler: yes
nodejs_version: "12.x"
postgresql_hba_entries:
- { type: local, database: all, user: postgres, auth_method: peer }
- { type: local, database: all, user: all, auth_method: peer }
- {
type: host,
database: all,
user: all,
address: "127.0.0.1/32",
auth_method: trust,
}
- {
type: host,
database: all,
user: all,
address: "::1/128",
auth_method: trust,
}
postgresql_users:
- name: greenlight
state: present
postgresql_databases:
- name: greenlight_production
owner: greenlight
state: present
postgres_users_no_log: false
roles:
- nginx
- nginx-tls
- role: geerlingguy.postgresql
become: yes
- geerlingguy.redis
- geerlingguy.ruby
- geerlingguy.nodejs
- greenlight