Skip to content

Commit c74f79f

Browse files
committed
Install the email templates (and also create the other directories while at it)
1 parent 344be64 commit c74f79f

File tree

3 files changed

+111
-0
lines changed

3 files changed

+111
-0
lines changed

ansible/playbooks/roles/encoder-storage/tasks/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,29 @@
1919
name: nfs-server
2020
state: restarted
2121
when: reviewstorage_nfs_exported.changed
22+
23+
- name: "create assets directory"
24+
file:
25+
path: /srv/sreview/assets
26+
state: directory
27+
28+
- name: "create other directories"
29+
file:
30+
path: /srv/sreview/{{ item }}
31+
state: directory
32+
owner: 2000
33+
group: 2000
34+
with_items:
35+
- storage
36+
- output
37+
38+
- name: "Create email templates"
39+
template:
40+
dest: /srv/sreview/assets/{{ item }}
41+
src: "{{ item }}"
42+
owner: root
43+
group: root
44+
mode: 0644
45+
with_items:
46+
- announce_email.ep.j2
47+
- notify_email.ep.j2
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Hi!
2+
3+
This is to inform you that your talk at {{ event.fullname }}, with title
4+
5+
<%== $title %>
6+
7+
has been fully transcoded and uploaded to
8+
9+
% my $room = $talk->room;
10+
% $room =~ s/ \(.*//;
11+
https://video.fosdem.org/{{ event.year }}/<%== $room . '/' . $talk->slug . ".mp4" %>
12+
https://video.fosdem.org/{{ event.year }}/<%== $room . '/' . $talk->slug . ".webm" %>
13+
14+
Please note however, that it will still take a while for our mirrors to
15+
pick up the video; before that happens, you will not be able to watch
16+
it. Mirror sync may take up to a couple of hours in the worst case.
17+
18+
Additionally, your video will also be linked to from the schedule;
19+
however, this too may take a while.
20+
21+
Should you encounter any issues with your recording, you may contact us
22+
via:
23+
24+
25+
IRC: irc.freenode.net, #fosdem-video
26+
27+
Thanks for your assistance,
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
Hi!
2+
3+
This is to inform you that your talk at {{ event.fullname }}, with title
4+
5+
<%== $title %>
6+
7+
is now available for you to review.
8+
9+
Please help us reviewing this talk, so that we can release it sooner. If
10+
you don't do so, we will eventually get around to it ourselves, but that
11+
might take a while.
12+
% my $corrections = $talk->corrections;
13+
% if (exists ($corrections->{serial})) {
14+
15+
We note that this is not the first time you receive this email; this is
16+
because the video has been reviewed a first time (possibly not by you --
17+
check the Cc list, above). For your information, the following
18+
corrections were applied to this video:
19+
20+
Review counter: <%== $corrections->{serial} %>
21+
Start time offset: <%== $corrections->{offset_start} %>
22+
Length adjust: <%== $corrections->{length_adj} %>
23+
A/V sync correction: <%== $corrections->{offset_audio} %>
24+
Audio channel selection: Channel <%== $corrections->{audio_channel} %>
25+
% if (defined($talk->apology)) {
26+
27+
Additionally, this talk has an apology note configured:
28+
29+
"<%== $talk->apology %>"
30+
31+
If the talk is released, the above note will be shown on a "We're sorry,
32+
but we had some technical problems"-type interstitial slide between the
33+
opening credits and the actual talk.
34+
35+
Should you wish to see it changed, please contact the FOSDEM video team
36+
(see below).
37+
% }
38+
39+
Don't worry if you don't understand what the above means. The review
40+
system will have taken your input, and created a new preview video.
41+
Please review it, and confirm it if all is well.
42+
% } else {
43+
We note that this talk may have been previously submitted without any
44+
changes been made to it. This is unlikely to have worked very well, so
45+
we reset the talk to the editing stage.
46+
% }
47+
48+
Should you encounter any issues with your recording, you may contact us
49+
via:
50+
51+
52+
IRC: irc.freenode.net, #fosdem-video
53+
54+
To review, please go to the following URL:
55+
56+
<%== $url %>
57+
58+
Thanks for your assistance!

0 commit comments

Comments
 (0)