diff options
Diffstat (limited to 'modules/partofme')
-rw-r--r-- | modules/partofme/files/twitch | 3 | ||||
-rw-r--r-- | modules/partofme/manifests/twitch.pp | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/modules/partofme/files/twitch b/modules/partofme/files/twitch new file mode 100644 index 0000000..c28b80b --- /dev/null +++ b/modules/partofme/files/twitch @@ -0,0 +1,3 @@ +#!/bin/sh + +streamlink -p "cvlc -A alsa --alsa-audio-device hdmi:CARD=PCH,DEV=2 -V fb --no-fb-tty" twitch.tv/"${1}" best diff --git a/modules/partofme/manifests/twitch.pp b/modules/partofme/manifests/twitch.pp new file mode 100644 index 0000000..13bd824 --- /dev/null +++ b/modules/partofme/manifests/twitch.pp @@ -0,0 +1,10 @@ +class partofme::twitch { + package { ["streamlink", "vlc"]: + ensure => installed; + } + + file { "/usr/local/bin/twitch": + mode => "0755", + source => 'puppet:///modules/partofme/twitch'; + } +} |