diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-06-08 23:11:22 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-06-08 23:11:22 -0400 |
commit | 43df79ed21379e8f2f795ab3a5ae4b9b74346779 (patch) | |
tree | 1541e51a6f7add40787067f0d900f4f8c8faf604 /modules/partofme | |
parent | 20351f32beb482a1a903523964c31ea1b17ce2a9 (diff) | |
download | puppet-tozt-43df79ed21379e8f2f795ab3a5ae4b9b74346779.tar.gz puppet-tozt-43df79ed21379e8f2f795ab3a5ae4b9b74346779.zip |
allow watching twitch via partofme
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'; + } +} |