summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-04-12 22:56:49 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-04-12 22:56:49 +0200
commitf8bfa0fc702bc65bfe1552dec58de36d36a7f29e (patch)
tree94d96ef39308464fce2005c68c77c9cbf33a3a9a
parentsk-cloudio: (diff)
ch-zimablade as video player
-rw-r--r--chaos-at-home/ch-zimablade.yml25
-rw-r--r--inventory/host_vars/ch-zimablade.yml32
2 files changed, 57 insertions, 0 deletions
diff --git a/chaos-at-home/ch-zimablade.yml b/chaos-at-home/ch-zimablade.yml
new file mode 100644
index 00000000..eeb75a0b
--- /dev/null
+++ b/chaos-at-home/ch-zimablade.yml
@@ -0,0 +1,25 @@
+---
+- name: Basic Setup
+ hosts: ch-zimablade
+ roles:
+ - role: apt-repo/base
+ - role: core/base
+ - role: core/sshd/base
+ - role: core/zsh
+ - role: core/ntp
+ - role: core/cpu-microcode
+
+- name: Payload Setup
+ hosts: ch-zimablade
+ roles:
+ - role: apt-repo/spreadspace
+ - role: streaming/blackmagic/desktopvideo
+ - role: streaming/mpv-headless
+ post_tasks:
+ - name: install script to play videos via decklink card
+ copy:
+ dest: /usr/local/bin/play-video.sh
+ mode: 0755
+ content: |
+ #!/bin/bash
+ exec ffmpeg -i "$1" -ac 2 -pix_fmt uyvy422 -s 1920x1080 -r 25 -f decklink 'DeckLink Mini Monitor 4K'
diff --git a/inventory/host_vars/ch-zimablade.yml b/inventory/host_vars/ch-zimablade.yml
index 4590adf3..da6e63f8 100644
--- a/inventory/host_vars/ch-zimablade.yml
+++ b/inventory/host_vars/ch-zimablade.yml
@@ -13,3 +13,35 @@ network:
gateway: "{{ network_zones.lan.gateway }}"
interfaces:
- *_network_primary_
+
+
+base_modules_blacklist: "{{ base_modules_blacklist_all_but_sound }}"
+
+sshd_allowusers_host:
+ - player
+
+
+apt_repo_components:
+ - main
+ - contrib
+ - non-free-firmware
+ - non-free
+
+spreadspace_apt_repo_components:
+ - streaming
+
+blackmagic_desktopvideo_version: 12.5a15
+blackmagic_desktopvideo_include_gui: yes
+
+
+mpv_headless_media_storage:
+ type: lvm
+ vg: "{{ host_name }}"
+ lv: media
+ size: 10G
+ fs: ext4
+
+mpv_headless_audio_device: "alsa/hdmi"
+mpv_headless_video_mode: "1920x1080@50"
+
+mpv_headless_ssh_keys: "{{ users.equinox.ssh }}"