feat: add sonarr module

This commit is contained in:
2024-06-10 21:24:48 +10:00
parent b7a22551b1
commit b4c20fd7d6
5 changed files with 140 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# manage sonarr service
class sonarr::service (
$service_enable = $sonarr::service_enable,
$service_name = $sonarr::service_name,
$user = $sonarr::user,
$group = $sonarr::user,
$install_path = $sonarr::install_path,
$executable = $sonarr::executable,
$base_path = $sonarr::base_path,
) {
if $service_enable {
include ::systemd
systemd::unit_file { "${service_name}.service":
content => template('sonarr/sonarr.service.erb'),
enable => true,
active => true,
}
}
}