summaryrefslogtreecommitdiff
path: root/roles/streaming/recorder/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-05-29 20:54:05 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-05-29 20:54:05 +0200
commit939588873587a62dab09ad86595807a6a3a83bfa (patch)
treeab8a1f02e5d9bb38b51d41a51e785f9bc2fe1508 /roles/streaming/recorder/tasks/main.yml
parentcosmetic changes (diff)
streaming/recorder: make use of new recording script in docker container
Diffstat (limited to 'roles/streaming/recorder/tasks/main.yml')
-rw-r--r--roles/streaming/recorder/tasks/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/streaming/recorder/tasks/main.yml b/roles/streaming/recorder/tasks/main.yml
index ee682b89..e1588c83 100644
--- a/roles/streaming/recorder/tasks/main.yml
+++ b/roles/streaming/recorder/tasks/main.yml
@@ -10,6 +10,16 @@
file:
path: "{{ recorder_base_path }}/{{ recorder_inst_name }}"
state: directory
+
+- name: generate recorder config
+ copy:
+ content: "{{ recorder_config | combine({'record': {'segment_time': recorder_segment_time, 'clocktime_offset': recorder_segment_clocktime_offset}}) | to_nice_yaml }}\n"
+ dest: "{{ recorder_base_path }}/{{ recorder_inst_name }}/config.yml"
+
+- name: create recording directory
+ file:
+ path: "{{ recorder_base_path }}/{{ recorder_inst_name }}/recordings"
+ state: directory
owner: app
group: app
@@ -18,5 +28,9 @@
kubernetes_standalone_pod:
name: "recorder-{{ recorder_inst_name }}"
spec: "{{ lookup('template', 'pod-spec.yml.j2') }}"
+ config_hash_items:
+ - path: "{{ recorder_base_path }}/{{ recorder_inst_name }}/config.yml"
+ properties:
+ - checksum
include_role:
name: kubernetes/standalone/pod