feat: add radarr module

This commit is contained in:
2024-06-25 23:03:04 +10:00
parent 6993ff0036
commit 17c16bfc33
7 changed files with 220 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# manage radarr service
class radarr::service (
$service_enable = $radarr::service_enable,
$service_name = $radarr::service_name,
$user = $radarr::user,
$group = $radarr::user,
$install_path = $radarr::install_path,
$executable = $radarr::executable,
$base_path = $radarr::base_path,
) {
if $service_enable {
include ::systemd
systemd::unit_file { "${service_name}.service":
content => template('radarr/radarr.service.erb'),
enable => true,
active => true,
subscribe => File["${base_path}/config.xml"],
}
}
}