install jellyfin onto home.nas
This commit is contained in:
parent
74baeb4bf4
commit
361bb6a563
5 changed files with 102 additions and 0 deletions
7
bundles/jellyfin/files/jellyfin-sudoers
Normal file
7
bundles/jellyfin/files/jellyfin-sudoers
Normal file
|
@ -0,0 +1,7 @@
|
|||
Cmnd_Alias RESTARTSERVER_SYSTEMD = /usr/bin/systemd-run systemctl restart jellyfin
|
||||
Cmnd_Alias STARTSERVER_SYSTEMD = /usr/bin/systemd-run systemctl start jellyfin
|
||||
Cmnd_Alias STOPSERVER_SYSTEMD = /usr/bin/systemd-run systemctl stop jellyfin
|
||||
|
||||
jellyfin ALL=(ALL) NOPASSWD: RESTARTSERVER_SYSTEMD
|
||||
jellyfin ALL=(ALL) NOPASSWD: STARTSERVER_SYSTEMD
|
||||
jellyfin ALL=(ALL) NOPASSWD: STOPSERVER_SYSTEMD
|
5
bundles/jellyfin/items.py
Normal file
5
bundles/jellyfin/items.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
files['/etc/sudoers.d/jellyfin-sudoers'] = {
|
||||
'after': {
|
||||
'pkg_apt:jellyfin',
|
||||
},
|
||||
}
|
38
bundles/jellyfin/metadata.py
Normal file
38
bundles/jellyfin/metadata.py
Normal file
|
@ -0,0 +1,38 @@
|
|||
from bundlewrap.metadata import atomic
|
||||
|
||||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
'jellyfin': {},
|
||||
},
|
||||
'repos': {
|
||||
'jellyfin': {
|
||||
'uris': {
|
||||
'https://repo.jellyfin.org/{os}'
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'icinga2_api': {
|
||||
'transmission': {
|
||||
'services': {
|
||||
'JELLYFIN PROCESS': {
|
||||
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C jellyfin -c 1:',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'firewall/port_rules',
|
||||
)
|
||||
def firewall(metadata):
|
||||
return {
|
||||
'firewall': {
|
||||
'port_rules': {
|
||||
'8096': atomic(metadata.get('jellyfin/restrict-to', {'*'})),
|
||||
},
|
||||
},
|
||||
}
|
51
data/apt/files/gpg-keys/jellyfin.asc
Normal file
51
data/apt/files/gpg-keys/jellyfin.asc
Normal file
|
@ -0,0 +1,51 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQGNBFwWoe0BDAC84Lw0ULDa7goKnxx6MsoSRp/c26mVSyo32NaaU4hd0j2ZsRpA
|
||||
/Au33yZJesgtq6O5H3X2aQazmENqtp/phyWexwPn6L7w5SMkSMQIGCNzmbWnd2ef
|
||||
RHHp2vJ7w9p5d2FRm2mPnxvgV+G2lumg2Nq9YWCdhI0lpIh47n4KBR4WjmVi+Jrp
|
||||
VhZan4TUUX8Lz3HP3jW1gzXIOnD8dEM+HyBamq8GCnmA3jtqFY2pxeU/Ol7uXmBw
|
||||
n4B2AHHDe5CyhczK+j6tvdvN+1mNnXXrg0W5hu6MJuHBucQF1sXhYC7q9BzhMEES
|
||||
MM+mXzwwjknVdxh7rFHz5Hh+rwA6cTE/3rbvMhNaFusLC6gGuZw+LyK2Y2gsWkZ9
|
||||
1vtdlpU1Evox+JYH2wnfgLdMEnqOP4JT7jOwJwoQS7nxTJBGBx9RK/BGfCHf5LE8
|
||||
moJxIBsw3rpgsP75ekaNTuxIZdQz+hzRB/rsk8I7U7L1i9RS8E+2DQDO98PZ7ZMQ
|
||||
hcUbEFSEtrdMTEMAEQEAAbQhSmVsbHlmaW4gVGVhbSA8dGVhbUBqZWxseWZpbi5v
|
||||
cmc+iQHOBBMBCgA4AhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAFiEESRiqvEhs
|
||||
oFI1jXeNSQI80B3iGnsFAl+6tVIACgkQSQI80B3iGntaRwwAmoF7msQXtBc+pC+q
|
||||
li/kP/HAY/lowPdG6HqnVlfIUnDymBR4oKTO+izuZDNVFczBtiExcWecp4kbV0vV
|
||||
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scO1c0ju6kvEEfxhw
|
||||
h6qGmrnTVVHBbpBvI7nY3M5BfdDIg5/oQm0r5OLcPkMb2FKYNMmCPg/sd1qkw0LF
|
||||
ZoV3SMsxEMK5J6P+XVH2vmZPWQhObZxUbnCYEZX/nVG1lbtRQ/EwXLT2/WoxQ5sg
|
||||
JsVnlqQu0XjtZhSDcIR/dNgJfYsrts3xfn1qMzs8b63nq/GXTEmRvZpOggGo/ybT
|
||||
oqYC5A==
|
||||
=OWPs
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
|
@ -4,6 +4,7 @@ nodes['home.nas'] = {
|
|||
'hostname': '172.19.138.20',
|
||||
'bundles': {
|
||||
'backup-client',
|
||||
'jellyfin',
|
||||
'lm-sensors',
|
||||
'mixcloud-downloader',
|
||||
'mosquitto',
|
||||
|
|
Loading…
Reference in a new issue