]> xn--ix-yja.es Git - alex.git/commitdiff
Migrate Jellyfin setup from old IaaC
authoralex <alex@pdp7.net>
Wed, 2 Oct 2024 18:44:35 +0000 (18:44 +0000)
committeralexpdp7 <alex@corcoles.net>
Wed, 2 Oct 2024 18:45:35 +0000 (20:45 +0200)
personal_infra/puppet/modules/jellyfin/manifests/init.pp [new file with mode: 0644]
personal_infra/puppet/site/dixie.bcn.int.pdp7.net.pp

diff --git a/personal_infra/puppet/modules/jellyfin/manifests/init.pp b/personal_infra/puppet/modules/jellyfin/manifests/init.pp
new file mode 100644 (file)
index 0000000..0f96df8
--- /dev/null
@@ -0,0 +1,5 @@
+class jellyfin {
+    exec {'/usr/bin/apt install -y apt-transport-https && wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add - && echo "deb [arch=amd64] https://repo.jellyfin.org/debian bookworm main" | sudo tee /etc/apt/sources.list.d/jellyfin.list && apt update && apt install -y jellyfin':
+        creates => '/usr/share/doc/jellyfin/README.Debian',
+    }
+}
\ No newline at end of file
index b2c54ce32c42e3bc4a8baf7803782cd4ac8ca726..edb417474d55e51340c3d70ced148a3a067890fb 100644 (file)
@@ -67,4 +67,6 @@ host-record=router4g.bcn.int.pdp7.net,router4g,192.168.76.3
     ensure => link,
     target => '/usr/local/sbin/zfs_receive_h2',
   }
+
+  class {'jellyfin':}
 }