chore: update media roles for incus (#294)

- prevent incus roles from exporting haproxy endpoints (for now)
- incus doesnt need to mount cephfs

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/294
This commit is contained in:
Ben Vincent 2025-05-24 18:59:46 +10:00
parent 520e8a34e0
commit 93cd02deec
2 changed files with 33 additions and 22 deletions

View File

@ -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

View File

@ -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]:}