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
+5 -4
View File
@@ -3,7 +3,7 @@ class sonarr::service (
$service_enable = $sonarr::service_enable,
$service_name = $sonarr::service_name,
$user = $sonarr::user,
$group = $sonarr::user,
$group = $sonarr::group,
$install_path = $sonarr::install_path,
$executable = $sonarr::executable,
$base_path = $sonarr::base_path,
@@ -12,9 +12,10 @@ class sonarr::service (
include ::systemd
systemd::unit_file { "${service_name}.service":
content => template('sonarr/sonarr.service.erb'),
enable => true,
active => true,
content => template('sonarr/sonarr.service.erb'),
enable => true,
active => true,
subscribe => File["${base_path}/config.xml"],
}
}
}