summaryrefslogtreecommitdiffstats
path: root/roles/stream
diff options
context:
space:
mode:
Diffstat (limited to 'roles/stream')
-rw-r--r--roles/stream/defaults/main.yml1
-rw-r--r--roles/stream/templates/icecast.xml2
2 files changed, 2 insertions, 1 deletions
diff --git a/roles/stream/defaults/main.yml b/roles/stream/defaults/main.yml
index 5ce637e..f013dba 100644
--- a/roles/stream/defaults/main.yml
+++ b/roles/stream/defaults/main.yml
@@ -4,3 +4,4 @@ icecast_lowres_scale: "854:480"
icecast_user: icecast2
icecast_group: icecast
icecast_restream_dir: /etc/icecast2/restream
+icecast_save_dump: false
diff --git a/roles/stream/templates/icecast.xml b/roles/stream/templates/icecast.xml
index e09e6a0..f9c3916 100644
--- a/roles/stream/templates/icecast.xml
+++ b/roles/stream/templates/icecast.xml
@@ -192,7 +192,7 @@
<mount-name>/emacsconf/{{ track.id }}.webm</mount-name>
<username>{{ icecast_emacsconf_user }}</username>
<password>{{ icecast_emacsconf_password }}</password>
- <dump-file>/data/{{ emacsconf_id }}-{{ emacsconf_year }}-{{ track.id }}_%Y-%m-%d_%H-%M-%S.webm</dump-file>
+ {% if icecast_save_dump %}<dump-file>/data/{{ emacsconf_id }}-{{ emacsconf_year }}-{{ track.id }}_%Y-%m-%d_%H-%M-%S.webm</dump-file>{% endif %}
<stream-name>{{ emacsconf_name }} {{ emacsconf_year }} - {{ track.name }} track</stream-name>
<stream-description>The livestream for the {{ track.name }} track of {{ emacsconf_name }} {{ emacsconf_year }}</stream-description>
<stream-url>{{ track.watch }}</stream-url>