feat: manage sonarr configuration
- add config class to sonarr module - update params to include unique group param
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# sonarr params
|
||||
class sonarr::params (
|
||||
$packages = [
|
||||
Array[String] $packages = [
|
||||
'mediainfo',
|
||||
'libzen',
|
||||
'libmediainfo',
|
||||
@@ -13,15 +13,36 @@ class sonarr::params (
|
||||
'python3-dbus',
|
||||
'libxslt-devel'
|
||||
],
|
||||
$user = 'sonarr',
|
||||
$base_path = '/opt/sonarr',
|
||||
$install_path = '/opt/sonarr/bin',
|
||||
$config_folder = "/home/${user}/.config",
|
||||
$app_folder = "/home/${user}/.config/Sonarr",
|
||||
$archive_version = '4.0.5',
|
||||
$archive_name = 'Sonarr.main.linux-x64.tar.gz',
|
||||
$archive_url = "https://git.query.consul/api/packages/unkinben/generic/sonarr/${archive_version}/",
|
||||
$executable = 'Sonarr/Sonarr',
|
||||
$service_enable = true,
|
||||
$service_name = 'sonarr',
|
||||
){}
|
||||
String $user = 'sonarr',
|
||||
String $group = 'sonarr',
|
||||
Stdlib::Absolutepath $base_path = '/opt/sonarr',
|
||||
Stdlib::Absolutepath $install_path = '/opt/sonarr/bin',
|
||||
Stdlib::Absolutepath $config_folder = '/home/sonarr/.config',
|
||||
Stdlib::Absolutepath $app_folder = '/home/sonarr/.config/Sonarr',
|
||||
String $archive_version = '4.0.5',
|
||||
String $archive_name = 'Sonarr.main.linux-x64.tar.gz',
|
||||
Stdlib::HTTPUrl $archive_url = "https://git.query.consul/api/packages/unkinben/generic/sonarr/${archive_version}/",
|
||||
String $executable = 'Sonarr/Sonarr',
|
||||
String $service_name = 'sonarr',
|
||||
Boolean $service_enable = true,
|
||||
|
||||
# params for the configuration file
|
||||
Stdlib::Host $bind_address = '127.0.0.1',
|
||||
Stdlib::Port $port = 8989,
|
||||
Stdlib::Port $ssl_port = 9898,
|
||||
Boolean $enable_ssl = false,
|
||||
Boolean $launch_browser = true,
|
||||
String $api_key = '32-digit-random-string-goes-here',
|
||||
Enum[
|
||||
'Forms',
|
||||
'Basic',
|
||||
'External'
|
||||
] $authentication_method = 'External',
|
||||
Enum['Enabled', 'Disabled'] $authentication_required = 'Enabled',
|
||||
String $branch = 'main',
|
||||
Enum['debug', 'info', 'warn', 'error', 'fatal'] $log_level = 'info',
|
||||
Optional[String] $ssl_cert_path = undef,
|
||||
Optional[String] $ssl_cert_password = undef,
|
||||
Optional[String] $url_base = undef,
|
||||
String $instance_name = 'Sonarr',
|
||||
) { }
|
||||
|
||||
Reference in New Issue
Block a user