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:
parent
520e8a34e0
commit
93cd02deec
@ -5,3 +5,12 @@ profiles::packages::include:
|
||||
|
||||
# disable mlock for vault nodes on lxd/incus
|
||||
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,
|
||||
) {
|
||||
|
||||
include profiles::ceph::client
|
||||
if $facts['virtual'] == 'lxc' {
|
||||
include profiles::ceph::client
|
||||
|
||||
# manage the sharedvol
|
||||
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'],
|
||||
}
|
||||
# manage the sharedvol
|
||||
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_jellyfin',
|
||||
ports => [443],
|
||||
options => [
|
||||
"cookie ${facts['networking']['hostname']}",
|
||||
'ssl',
|
||||
'verify none',
|
||||
'check',
|
||||
'inter 2s',
|
||||
'rise 3',
|
||||
'fall 2',
|
||||
]
|
||||
# export haproxy balancemember
|
||||
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_443":
|
||||
service => 'be_jellyfin',
|
||||
ports => [443],
|
||||
options => [
|
||||
"cookie ${facts['networking']['hostname']}",
|
||||
'ssl',
|
||||
'verify none',
|
||||
'check',
|
||||
'inter 2s',
|
||||
'rise 3',
|
||||
'fall 2',
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
mkdir::p {[$data_dir, $lib_dir, $cache_dir, $config_dir, $log_dir]:}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user