Added jellyfin
This commit is contained in:
parent
6e0a2f0e98
commit
0e50eeb40e
5 changed files with 56 additions and 0 deletions
10
pillars/roles/mount/jellyfin.sls
Normal file
10
pillars/roles/mount/jellyfin.sls
Normal file
|
@ -0,0 +1,10 @@
|
|||
mount:
|
||||
sshfs:
|
||||
/mnt/video:
|
||||
name: video
|
||||
host: host.actcur.com
|
||||
directory: /mnt/butter/video
|
||||
user: mount
|
||||
ext4:
|
||||
/mnt/jelly:
|
||||
device: UUID=adc4740a-d471-4be4-9995-65cb66794b51
|
13
pillars/roles/nginx/jellyfin.sls
Normal file
13
pillars/roles/nginx/jellyfin.sls
Normal file
|
@ -0,0 +1,13 @@
|
|||
nginx:
|
||||
jelly:
|
||||
auth: none
|
||||
https:
|
||||
port: 8096
|
||||
prot: http
|
||||
|
||||
portal:
|
||||
Media:
|
||||
jelly:
|
||||
name: Jelly
|
||||
summary: Jellyfin Media Server
|
||||
public: true
|
7
pillars/servers/roles/server/jelly.sls
Normal file
7
pillars/servers/roles/server/jelly.sls
Normal file
|
@ -0,0 +1,7 @@
|
|||
roles:
|
||||
- server
|
||||
- ssh
|
||||
- nrpe
|
||||
- saltminion
|
||||
- nginx-proxy
|
||||
- jellyfin
|
20
states/roles/maintain/jellyfin/init.sls
Normal file
20
states/roles/maintain/jellyfin/init.sls
Normal file
|
@ -0,0 +1,20 @@
|
|||
{%- set os=grains['os'] -%}
|
||||
|
||||
jellyfin:
|
||||
pkg.installed:
|
||||
- name: jellyfin-bin
|
||||
service.running:
|
||||
- enable: true
|
||||
|
||||
/etc/conf.d/jellyfin:
|
||||
file.managed:
|
||||
- source: salt://roles/maintain/jellyfin/jellyfin
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
|
||||
mount:
|
||||
group.present:
|
||||
- gid: 503
|
||||
- addusers:
|
||||
- jellyfin
|
6
states/roles/maintain/jellyfin/jellyfin
Normal file
6
states/roles/maintain/jellyfin/jellyfin
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Data directory
|
||||
JELLYFIN_DATA_DIRECTORY="/mnt/jelly/data"
|
||||
# Cache directory
|
||||
JELLYFIN_CACHE_DIRECTORY="/mnt/jelly/cache"
|
||||
# Additional options for the binary
|
||||
JELLYFIN_ADD_OPTS="--webdir=/usr/share/jellyfin/web"
|
Loading…
Add table
Reference in a new issue