feat: actually add nzbget profile #102
@ -0,0 +1,31 @@
|
|||||||
|
# profiles::media::nzbget
|
||||||
|
class profiles::media::nzbget (
|
||||||
|
Stdlib::Absolutepath $media_root = '/shared/media',
|
||||||
|
) {
|
||||||
|
|
||||||
|
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'],
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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',
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user