- migrate media applications to new cephfs pool + incus - enable exporting haproxy - move ceph-client-setup to only apply to non-lxc hosts - ensure unrar is installed for nzbget - updated jellyfin use of data_dir - set lxc instances for jellyfin to use /shared/apps/jellyfin Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/299
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
---
|
|
hiera_include:
|
|
- jellyfin
|
|
|
|
# manage jellyfin
|
|
jellyfin::params::service_enable: true
|
|
|
|
# additional altnames
|
|
profiles::pki::vault::alt_names:
|
|
- jellyfin.main.unkin.net
|
|
- jellyfin.service.consul
|
|
- jellyfin.query.consul
|
|
- "jellyfin.service.%{facts.country}-%{facts.region}.consul"
|
|
|
|
# manage a simple nginx reverse proxy
|
|
profiles::nginx::simpleproxy::nginx_vhost: 'jellyfin.query.consul'
|
|
profiles::nginx::simpleproxy::nginx_aliases:
|
|
- jellyfin.main.unkin.net
|
|
- jellyfin.service.consul
|
|
- jellyfin.query.consul
|
|
- "jellyfin.service.%{facts.country}-%{facts.region}.consul"
|
|
profiles::nginx::simpleproxy::proxy_port: 8096
|
|
profiles::nginx::simpleproxy::proxy_host: 127.0.0.1
|
|
profiles::nginx::simpleproxy::proxy_path: '/'
|
|
|
|
# configure consul service
|
|
nginx::client_max_body_size: 10M
|
|
consul::services:
|
|
jellyfin:
|
|
service_name: 'jellyfin'
|
|
tags:
|
|
- 'media'
|
|
- 'jellyfin'
|
|
address: "%{facts.networking.ip}"
|
|
port: 443
|
|
checks:
|
|
- id: 'jellyfin_http_check'
|
|
name: 'jellyfin HTTP Check'
|
|
http: "https://%{facts.networking.fqdn}:443"
|
|
method: 'GET'
|
|
tls_skip_verify: true
|
|
interval: '10s'
|
|
timeout: '1s'
|
|
profiles::consul::client::node_rules:
|
|
- resource: service
|
|
segment: jellyfin
|
|
disposition: write
|
|
|
|
profiles::yum::global::repos:
|
|
rpmfusion-free:
|
|
name: rpmfusion-free
|
|
descr: rpmfusion-free repository
|
|
target: /etc/yum.repos.d/rpmfusion.repo
|
|
baseurl: https://download1.rpmfusion.org/free/el/updates/%{facts.os.release.major}/%{facts.os.architecture}
|
|
gpgkey: https://download1.rpmfusion.org/free/el/RPM-GPG-KEY-rpmfusion-free-el-%{facts.os.release.major}
|
|
mirrorlist: absent
|
|
rpmfusion-nonfree:
|
|
name: rpmfusion-nonfree
|
|
descr: rpmfusion-nonfree repository
|
|
target: /etc/yum.repos.d/rpmfusion.repo
|
|
baseurl: https://download1.rpmfusion.org/nonfree/el/updates/%{facts.os.release.major}/%{facts.os.architecture}
|
|
gpgkey: https://download1.rpmfusion.org/nonfree/el/RPM-GPG-KEY-rpmfusion-nonfree-el-%{facts.os.release.major}
|
|
mirrorlist: absent
|
|
unkinben:
|
|
name: unkinben
|
|
descr: unkinben repository
|
|
target: /etc/yum.repos.d/unkin.repo
|
|
baseurl: https://git.query.consul/api/packages/unkinben/rpm/el8
|
|
gpgkey: https://git.query.consul/api/packages/unkinben/rpm/repository.key
|
|
gpgcheck: false
|
|
mirrorlist: absent
|