feat: manage sonarr configuration

- add config class to sonarr module
- update params to include unique group param
This commit is contained in:
2024-06-25 23:30:10 +10:00
parent 34e696e8c3
commit f22556b39f
8 changed files with 113 additions and 31 deletions
+27
View File
@@ -0,0 +1,27 @@
class sonarr::config (
$user = $sonarr::params::user,
$group = $sonarr::params::group,
$base_path = $sonarr::params::base_path,
$bind_address = $sonarr::bind_address,
$port = $sonarr::port,
$ssl_port = $sonarr::ssl_port,
$enable_ssl = $sonarr::enable_ssl,
$launch_browser = $sonarr::launch_browser,
$api_key = $sonarr::api_key,
$authentication_method = $sonarr::authentication_method,
$authentication_required = $sonarr::authentication_required,
$branch = $sonarr::branch,
$log_level = $sonarr::log_level,
$ssl_cert_path = $sonarr::ssl_cert_path,
$ssl_cert_password = $sonarr::ssl_cert_password,
$url_base = $sonarr::url_base,
$instance_name = $sonarr::instance_name,
) {
file { "${base_path}/config.xml":
ensure => file,
content => template('sonarr/sonarr_config.xml.erb'),
owner => $user,
group => $group,
mode => '0644',
}
}