Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global vars #295

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions ansible/group_vars/all/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,128 @@ node_exporter_enabled_collectors:
unit-whitelist: "'.+\\.service'"
- textfile:
directory: "{{ node_exporter_textfile_dir }}"

event:
name: FOSDEM
fullname: FOSDEM 2020
year: 2020
startdate: "2020-02-01"
enddate: "2020-02-02"

rooms:
- name: AW1.120
streamname: aw1120
recorded: yes
- name: AW1.121
streamname: aw1121
recorded: yes
- name: AW1.125
streamname: aw1125
recorded: yes
- name: AW1.126
streamname: aw1126
recorded: yes
- name: H.1301
namesake: Cornil
streamname: h1301
recorded: yes
- name: H.1302
namesake: Depage
streamname: h1302
recorded: yes
- name: H.1308
namesake: Rolin
streamname: h1308
recorded: yes
- name: H.1309
namesake: Van Rijn
streamname: h1309
recorded: yes
- name: H.2213
streamname: h2213
recorded: yes
- name: H.2214
streamname: h2214
recorded: yes
- name: H.2215
namesake: Ferrer
streamname: h2215
recorded: yes
- name: H.3242
streamname: h3242
recorded: no
- name: H.3244
streamname: h3244
recorded: no
- name: J.1.106
recorded: no
- name: Janson
streamname: janson
recorded: yes
- name: K.1.105
namesake: La Fontaine
streamname: k1105
recorded: yes
- name: K.3.201
streamname: k3201
recorded: yes
- name: K.3.401
streamname: k3401
recorded: yes
- name: K.4.201
streamname: k4201
recorded: yes
- name: K.4.401
streamname: k4401
recorded: yes
- name: K.4.601
streamname: k4601
recorded: yes
- name: UA2.114
streamname: ua2114
namesake: Baudoux
recorded: yes
- name: UA2.118
streamname: ua2118
namesake: Henriot
recorded: yes
- name: UA2.220
streamname: ua2110
namesake: Guilissen
recorded: yes
- name: UB2.147
streamname: ub2147
recorded: yes
- name: UB2.252A
streamname: ub2252a
namesake: Lameere
recorded: yes
- name: UB4.132
recorded: no
- name: UB4.136
streamname: ub4136
recorded: yes
- name: UB4.228
recorded: no
- name: UB5.132
streamname: ub5132
recorded: yes
- name: UB5.230
streamname: ub5230
recorded: yes
- name: UD2.119
streamname: ud2119
recorded: yes
- name: UD2.120
namesake: Chavanne
streamname: ud2120
recorded: yes
- name: UD2.208
namesake: Decroly
streamname: ud2208
recorded: yes
- name: UD2.218A
streamname: ud2218a
recorded: yes
- name: UD2.Corridor
recorded: no
6 changes: 3 additions & 3 deletions ansible/playbooks/roles/encoder-common/templates/config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ $email_from = '[email protected]';
# A filename of a Mojo::Template template to process, returning the email body. Required if notify_actions includes email.
$notify_email_template = '/srv/sreview/assets/notify-email.ep';

$notify_email_subject = "Your FOSDEM 2020 talk titled '<%== \$title %>'\\";
$notify_email_subject = "Your {{ event.fullname }} talk titled '<%== \$title %>'\\";

$announce_email_template = '/srv/sreview/assets/announce-email.ep';

$announce_email_subject = "RELEASED: Your FOSDEM 2020 talk titled '<%== \$title %>'\\";
$announce_email_subject = "RELEASED: Your {{ event.fullname }} talk titled '<%== \$title %>'\\";

# The default event to handle in the webinterface. Ignored by all other parts of sreview.
$event = 'FOSDEM 2020';
$event = '{{ event.fullname }}';

$extra_profiles = {
FOSDEM => {
Expand Down
26 changes: 26 additions & 0 deletions ansible/playbooks/roles/encoder-storage/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,29 @@
name: nfs-server
state: restarted
when: reviewstorage_nfs_exported.changed

- name: "create assets directory"
file:
path: /srv/sreview/assets
state: directory

- name: "create other directories"
file:
path: /srv/sreview/{{ item }}
state: directory
owner: 2000
group: 2000
with_items:
- storage
- output

- name: "Create email templates"
template:
dest: /srv/sreview/assets/{{ item }}
src: "{{ item }}"
owner: root
group: root
mode: 0644
with_items:
- announce_email.ep.j2
- notify_email.ep.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Hi!

This is to inform you that your talk at {{ event.fullname }}, with title

<%== $title %>

has been fully transcoded and uploaded to

% my $room = $talk->room;
% $room =~ s/ \(.*//;
https://video.fosdem.org/{{ event.year }}/<%== $room . '/' . $talk->slug . ".mp4" %>
https://video.fosdem.org/{{ event.year }}/<%== $room . '/' . $talk->slug . ".webm" %>

Please note however, that it will still take a while for our mirrors to
pick up the video; before that happens, you will not be able to watch
it. Mirror sync may take up to a couple of hours in the worst case.

Additionally, your video will also be linked to from the schedule;
however, this too may take a while.

Should you encounter any issues with your recording, you may contact us
via:

email: [email protected]
IRC: irc.freenode.net, #fosdem-video

Thanks for your assistance,
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
Hi!

This is to inform you that your talk at {{ event.fullname }}, with title

<%== $title %>

is now available for you to review.

Please help us reviewing this talk, so that we can release it sooner. If
you don't do so, we will eventually get around to it ourselves, but that
might take a while.
% my $corrections = $talk->corrections;
% if (exists ($corrections->{serial})) {

We note that this is not the first time you receive this email; this is
because the video has been reviewed a first time (possibly not by you --
check the Cc list, above). For your information, the following
corrections were applied to this video:

Review counter: <%== $corrections->{serial} %>
Start time offset: <%== $corrections->{offset_start} %>
Length adjust: <%== $corrections->{length_adj} %>
A/V sync correction: <%== $corrections->{offset_audio} %>
Audio channel selection: Channel <%== $corrections->{audio_channel} %>
% if (defined($talk->apology)) {

Additionally, this talk has an apology note configured:

"<%== $talk->apology %>"

If the talk is released, the above note will be shown on a "We're sorry,
but we had some technical problems"-type interstitial slide between the
opening credits and the actual talk.

Should you wish to see it changed, please contact the FOSDEM video team
(see below).
% }

Don't worry if you don't understand what the above means. The review
system will have taken your input, and created a new preview video.
Please review it, and confirm it if all is well.
% } else {
We note that this talk may have been previously submitted without any
changes been made to it. This is unlikely to have worked very well, so
we reset the talk to the editing stage.
% }

Should you encounter any issues with your recording, you may contact us
via:

email: [email protected]
IRC: irc.freenode.net, #fosdem-video

To review, please go to the following URL:

<%== $url %>

Thanks for your assistance!
Loading