- 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
33 lines
848 B
Puppet
33 lines
848 B
Puppet
# profiles::media::nzbget
|
|
class profiles::media::nzbget (
|
|
Stdlib::Absolutepath $media_root = '/shared/media',
|
|
) {
|
|
|
|
if $facts['virtual'] != 'lxc' {
|
|
# manage the sharedvol
|
|
include profiles::ceph::client
|
|
profiles::storage::cephfsvol {"${::facts['networking']['fqdn']}_media":
|
|
mount => $media_root,
|
|
keyring => '/etc/ceph/ceph.client.media.keyring',
|
|
cephfs_name => 'media',
|
|
cephfs_fs => 'mediafs',
|
|
require => Profiles::Ceph::Keyring['media'],
|
|
}
|
|
}
|
|
|
|
# export haproxy balancemember
|
|
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_443":
|
|
service => 'be_nzbget',
|
|
ports => [443],
|
|
options => [
|
|
"cookie ${facts['networking']['hostname']}",
|
|
'ssl',
|
|
'verify none',
|
|
'check',
|
|
'inter 2s',
|
|
'rise 3',
|
|
'fall 2',
|
|
]
|
|
}
|
|
}
|