chore: update media roles for incus
- prevent incus roles from exporting haproxy endpoints (for now) - incus doesnt need to mount cephfs
This commit is contained in:
parent
520e8a34e0
commit
fb1e796d1b
@ -5,3 +5,12 @@ profiles::packages::include:
|
|||||||
|
|
||||||
# disable mlock for vault nodes on lxd/incus
|
# disable mlock for vault nodes on lxd/incus
|
||||||
vault::disable_mlock: true
|
vault::disable_mlock: true
|
||||||
|
|
||||||
|
hiera_exclude:
|
||||||
|
# exclude the media profiles which are just cephfs-mount-management
|
||||||
|
- profiles::media::lidar
|
||||||
|
- profiles::media::nzbget
|
||||||
|
- profiles::media::prowlarr
|
||||||
|
- profiles::media::radarr
|
||||||
|
- profiles::media::readarr
|
||||||
|
- profiles::media::sonarr
|
||||||
|
|||||||
@ -13,30 +13,32 @@ class profiles::media::jellyfin (
|
|||||||
Boolean $migrate_data = true,
|
Boolean $migrate_data = true,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include profiles::ceph::client
|
if $facts['virtual'] == 'lxc' {
|
||||||
|
include profiles::ceph::client
|
||||||
|
|
||||||
# manage the sharedvol
|
# manage the sharedvol
|
||||||
profiles::storage::cephfsvol {"${::facts['networking']['fqdn']}_media":
|
profiles::storage::cephfsvol {"${::facts['networking']['fqdn']}_media":
|
||||||
mount => $media_root,
|
mount => $media_root,
|
||||||
keyring => '/etc/ceph/ceph.client.media.keyring',
|
keyring => '/etc/ceph/ceph.client.media.keyring',
|
||||||
cephfs_name => 'media',
|
cephfs_name => 'media',
|
||||||
cephfs_fs => 'mediafs',
|
cephfs_fs => 'mediafs',
|
||||||
require => Profiles::Ceph::Keyring['media'],
|
require => Profiles::Ceph::Keyring['media'],
|
||||||
}
|
}
|
||||||
|
|
||||||
# export haproxy balancemember
|
# export haproxy balancemember
|
||||||
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_443":
|
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_443":
|
||||||
service => 'be_jellyfin',
|
service => 'be_jellyfin',
|
||||||
ports => [443],
|
ports => [443],
|
||||||
options => [
|
options => [
|
||||||
"cookie ${facts['networking']['hostname']}",
|
"cookie ${facts['networking']['hostname']}",
|
||||||
'ssl',
|
'ssl',
|
||||||
'verify none',
|
'verify none',
|
||||||
'check',
|
'check',
|
||||||
'inter 2s',
|
'inter 2s',
|
||||||
'rise 3',
|
'rise 3',
|
||||||
'fall 2',
|
'fall 2',
|
||||||
]
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir::p {[$data_dir, $lib_dir, $cache_dir, $config_dir, $log_dir]:}
|
mkdir::p {[$data_dir, $lib_dir, $cache_dir, $config_dir, $log_dir]:}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user